Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

ci: clarify release tag filters

yushen20c9d985f581
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 04dafedb9b..cdf99f77e8 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -3,8 +3,10 @@ name: Release
on:
push:
tags:
- - "v[0-9]+.[0-9]+.[0-9]+"
- - "v[0-9]+.[0-9]+.[0-9]+-*"
+ # GitHub Actions uses glob patterns here, not regex. Match versioned
+ # tags broadly at the trigger layer, then enforce strict semver below.
+ - "v*.*.*"
+ - "!v*-dirty*"
permissions:
contents: write
@@ -22,6 +24,10 @@ jobs:
run: |
tag="${GITHUB_REF_NAME}"
echo "Triggered by tag: $tag"
+ if [[ ! "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then
+ echo "::error::Release tags must look like vX.Y.Z or vX.Y.Z-suffix; got '$tag'."
+ exit 1
+ fi
if [[ "$tag" == *-dirty* ]]; then
echo "::error::Refusing to release from dirty tag '$tag'."
exit 1