Skip to content

Commit 27f9157

Browse files
committed
fix tag syntax
1 parent 4cb95c8 commit 27f9157

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/update-major-version-tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Update Major Version Tag
33
on:
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

@@ -32,8 +32,8 @@ jobs:
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ For more application cases please check [Smoke Test Workflow file](https://githu
110110
You 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

115115
Using the major version tag is recommended for most users, as it ensures you receive bug fixes and new features without breaking changes.
116116

0 commit comments

Comments
 (0)