diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 66ff432b0..310272ced 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,7 +12,7 @@ permissions: jobs: goreleaser: runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/fix/check-branch-in-release-action' }} + if: startsWith(github.ref, 'refs/tags/') && github.ref_name == 'refs/heads/fix/check-branch-in-release-action' steps: - name: Checkout uses: actions/checkout@v4