From c362aa0cd6e2031eeda411eca7a1ac920f4cdb29 Mon Sep 17 00:00:00 2001 From: "Harrison (Harry) Cramer" <32515581+harrisoncramer@users.noreply.github.com> Date: Sat, 18 Nov 2023 16:47:48 -0500 Subject: [PATCH] Fix tagging 2 (#109) Fixing the tagging so that merges into main automatically create a new tag of the correct version --- .github/workflows/tags.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index d5ad0cb..3769828 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -1,22 +1,19 @@ name: Tag + Bump version on: - pull_request: + push: branches: - main jobs: build: - if: github.event.pull_request.merged == true runs-on: ubuntu-22.04 permissions: contents: write steps: - uses: actions/checkout@v3 with: - ref: ${{ github.event.pull_request.merge_commit_sha }} fetch-depth: '0' - - name: Bump version and push tag - uses: anothrNick/github-tag-action@1.64.0 + uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version env: DEFAULT_BUMP: patch GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}