Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/RELEASE-PROCESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ GitHub Release creation may finish before or after the development bump and PR c

## Version Constraints

- Tags must follow format: `v{MAJOR}.{MINOR}.{PATCH}`
- Example valid versions: `v0.1.11`, `v0.2.0`, `v1.0.0`
- Tags must follow format: `v{MAJOR}.{MINOR}.{PATCH}` or `v{MAJOR}.{MINOR}.{PATCH}-mas.{N}`
- Example valid versions: `v0.1.11`, `v0.2.0`, `v1.0.0`, `v1.4.0-mas.1`
- The `-mas.N` suffix is used for fork-specific releases and creates normal (not pre-release) GitHub releases
- The release workflow rejects malformed tags before checking or creating a release, and passes the validated version to later shell steps through environment variables rather than interpolating it into shell source
- Auto-increment only bumps patch version
- Cannot create duplicate tags (workflow will fail)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
env:
TAG: ${{ inputs.tag }}
run: |
if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: '$TAG' is not a valid release tag (expected vX.Y.Z)"
if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-mas\.[0-9]+)?$ ]]; then
echo "Error: '$TAG' is not a valid release tag (expected vX.Y.Z or vX.Y.Z-mas.N)"
exit 1
fi

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
if [[ -n "$INPUT_VERSION" ]]; then
# Manual version specified - strip optional v prefix
VERSION="${INPUT_VERSION#v}"
# Validate strict semver format to prevent injection
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: Invalid version format '$VERSION'. Must be X.Y.Z (e.g. 1.2.3 or v1.2.3)"
# Validate semver format (with optional -mas.N suffix) to prevent injection
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-mas\.[0-9]+)?$ ]]; then
echo "Error: Invalid version format '$VERSION'. Must be X.Y.Z or X.Y.Z-mas.N (e.g. 1.2.3, v1.2.3, 1.2.3-mas.1)"
exit 1
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
id: version
run: |
VERSION=${GITHUB_REF#refs/tags/}
if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: '$VERSION' is not a valid release tag (expected vX.Y.Z)"
if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-mas\.[0-9]+)?$ ]]; then
echo "Error: '$VERSION' is not a valid release tag (expected vX.Y.Z or vX.Y.Z-mas.N)"
exit 1
fi
echo "tag=$VERSION" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
## Install

\`\`\`bash
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git@${VERSION}
uv tool install specify-cli --from git+https://github.com/MAS-Consultores/spec-kit.git@${VERSION}
specify init my-project
\`\`\`

Expand Down
Loading