ci: restrict tag triggers to full semver

- Prevent the floating v1 major tag from cutting a goreleaser release
  or a docker image build
This commit is contained in:
Bo-Yi Wu
2026-08-16 10:57:44 +08:00
parent 214f06cfa3
commit 4023d256c8
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ on:
branches: branches:
- master - master
tags: tags:
- "v*" # full semver only; the floating major tag (v1) must not trigger builds
- "v[0-9]*.[0-9]*.[0-9]*"
pull_request: pull_request:
branches: branches:
- master - master
+2 -1
View File
@@ -3,7 +3,8 @@ name: Goreleaser
on: on:
push: push:
tags: tags:
- "*" # full semver only; the floating major tag (v1) must not cut a release
- "v[0-9]*.[0-9]*.[0-9]*"
permissions: permissions:
contents: write contents: write