File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ name: Publish synd-cli Binaries
33on :
44 workflow_dispatch :
55 inputs :
6- tag_name :
7- description : " synd-cli version tag (e.g., synd-cli-v1 .0.0)"
6+ version :
7+ description : " Version (e.g., 1 .0.0)"
88 required : true
99 type : string
1010
@@ -16,10 +16,10 @@ jobs:
1616 name : Build synd-cli executables
1717 runs-on : ubuntu-latest
1818 steps :
19- - name : Validate tag format
19+ - name : Validate version format
2020 run : |
21- if [[ ! "${{ inputs.tag_name }}" =~ ^synd-cli-v [0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
22- echo "Error: tag_name must start with 'synd-cli-v' followed by semver (e.g., synd-cli-v1 .0.0)"
21+ if [[ ! "${{ inputs.version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
22+ echo "Error: version must be valid semver (e.g., 1 .0.0, 1.0.0-beta.1 )"
2323 exit 1
2424 fi
2525
9494 needs : build
9595 runs-on : ubuntu-latest
9696 env :
97- TAG_NAME : ${{ inputs.tag_name }}
97+ TAG_NAME : synd-cli-v ${{ inputs.version }}
9898 steps :
9999 - name : Download build artifacts
100100 uses : actions/download-artifact@v4
You can’t perform that action at this time.
0 commit comments