Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
ci(release): restrict tag pattern to semver and reject -dirty tags (#1280)
LinYushen133a1f1c1693
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex c973ab4094..6445bafd36 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -3,7 +3,8 @@ name: Releaseon:push:tags:- - "v*"+ - "v[0-9]+.[0-9]+.[0-9]+"+ - "v[0-9]+.[0-9]+.[0-9]+-*"permissions:contents: write@@ -17,6 +18,15 @@ jobs:with:fetch-depth: 0+ - name: Validate tag name+ run: |+ tag="${GITHUB_REF_NAME}"+ echo "Triggered by tag: $tag"+ if [[ "$tag" == *-dirty* ]]; then+ echo "::error::Refusing to release from dirty tag '$tag'."+ exit 1+ fi+- name: Setup Gouses: actions/setup-go@v5with: