Skip to content

Commit

Permalink
fix(pencil): remove unnecessary branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
Supermanuu committed Aug 9, 2024
1 parent 4ee75b5 commit 714171a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,13 @@ jobs:

- uses: actions/checkout@v4

- name: Check release branch
id: check
run: |
if ! [[ "$BRANCH_NAME" =~ release/* ]]; then
echo "'$BRANCH_NAME' is not a release branch, exiting job"
echo "donotrelease=true" >> $GITHUB_OUTPUT
fi
- name: Bump version and push tag
if : ( steps.check.outputs.donotrelease != 'true' )
id: tag
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a GitHub release
if : ( steps.check.outputs.donotrelease != 'true' )
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag.outputs.new_tag }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ Another attach has:

## Generate release

To generate a release you will need to create a new `release/*` branch and make a PR from that branch to main. In that scenario, when the PR is closed a job will be launched. That job will generate a tag and a release with all the change information from the previous tag until now, using the commit contents as specified in <https://github.com/mathieudutour/github-tag-action>.
To generate a release you will need to create a new `release/*` branch and make a PR from that branch to main. In that scenario, when the PR is closed a job will be launched. That job will generate a tag and a release with all the change information from the previous tag until now, using the commit contents as specified in <https://github.com/marketplace/actions/github-tag>.

0 comments on commit 714171a

Please sign in to comment.