From 1902b3bbcf11f7b8a2a21879b71a4700004aadae Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 5 Sep 2024 01:39:51 -0400 Subject: [PATCH] fix(release): remove unnecessary quotes in tag pattern --- .github/workflows/run-goreleaser.yml | 2 +- .github/workflows/tag-on-merge.yml | 38 ---------------------------- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 .github/workflows/tag-on-merge.yml diff --git a/.github/workflows/run-goreleaser.yml b/.github/workflows/run-goreleaser.yml index 755b7f3be..13b6b07a8 100644 --- a/.github/workflows/run-goreleaser.yml +++ b/.github/workflows/run-goreleaser.yml @@ -5,7 +5,7 @@ name: "Release Binary" on: push: tags: - - "v*" + - v* permissions: contents: write diff --git a/.github/workflows/tag-on-merge.yml b/.github/workflows/tag-on-merge.yml deleted file mode 100644 index 5c6df7167..000000000 --- a/.github/workflows/tag-on-merge.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Automatic Tag Bump -on: - pull_request: - types: - - closed - branches: - - develop - - master - -permissions: - contents: write - -jobs: - create_release_tag: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Install Commitizen - run: pip install commitizen - - - name: Determine next version - id: version - run: | - next_version=$(cz bump --dry-run) - echo "Next version: $next_version" - echo "NEW_VERSION=$next_version" >> $GITHUB_ENV - - - name: Create and push tag - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git tag -a "release/${{ env.NEW_VERSION }}" -m "Release ${{ env.NEW_VERSION }}" - git push origin "release/${{ env.NEW_VERSION }}"