From fa3c8403fc538be2400b372a5c85e692dc5f3b60 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Wed, 30 Sep 2026 06:44:45 -0700 Subject: [PATCH] ci: build a release on GitHub only for v* tags Gitea's release job ran only for v* tags; the GitHub port ran for any tag, so a tag pushed by hand for any other reason would have created a Gitea release and announced it. Restores the v* filter. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4296fa6..fd462d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,8 @@ jobs: - run: go run golang.org/x/vuln/cmd/govulncheck@latest ./... release: - if: vars.BUILD_ON == 'github' && github.ref_type == 'tag' + # v* tags only, as on Gitea: any other tag pushed by hand is not a release. + if: vars.BUILD_ON == 'github' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v') needs: [test] runs-on: ubuntu-latest env: -- 2.54.0