diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index ddfc5ff..f55ec82 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -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 }} diff --git a/README.md b/README.md index b100c83..0b10a42 100644 --- a/README.md +++ b/README.md @@ -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 . +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 .