File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ name: Update Major Version Tag
33on :
44 push :
55 tags :
6- - ' v [0-9]+.[0-9]+.[0-9]+'
6+ - ' [0-9]+.[0-9]+.[0-9]+'
77 workflow_dispatch :
88 inputs :
99 tag :
10- description : ' The full version tag to process (e.g., v13 .1.0)'
10+ description : ' The full version tag to process (e.g., 13 .1.0)'
1111 required : true
1212 type : string
1313
3232 TAG="${GITHUB_REF#refs/tags/}"
3333 fi
3434 echo "tag=$TAG" >> $GITHUB_OUTPUT
35- # Extract major version (e.g., v13 from v13 .1.0)
36- MAJOR_TAG=$(echo "$TAG" | sed -E 's/^(v [0-9]+)\..*/\1/')
35+ # Extract major version (e.g., 13 from 13 .1.0)
36+ MAJOR_TAG=$(echo "$TAG" | sed -E 's/^([0-9]+)\..*/\1/')
3737 echo "major_tag=$MAJOR_TAG" >> $GITHUB_OUTPUT
3838
3939 - name : Update major version tag
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ For more application cases please check [Smoke Test Workflow file](https://githu
110110You can reference this action using either:
111111
112112- **Full version** (e.g., ` DeLaGuardo/setup-clojure@13.4.0`) - pins to a specific release
113- - **Major version** (e.g., `DeLaGuardo/setup-clojure@v13 `) - automatically receives all minor and patch updates within that major version
113+ - **Major version** (e.g., `DeLaGuardo/setup-clojure@13 `) - automatically receives all minor and patch updates within that major version
114114
115115Using the major version tag is recommended for most users, as it ensures you receive bug fixes and new features without breaking changes.
116116
You can’t perform that action at this time.
0 commit comments