Skip to content

Commit fd25731

Browse files
committed
fix: get tags with checkout
Signed-off-by: jmeridth <[email protected]>
1 parent 59a313b commit fd25731

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/major-version-updater.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
steps:
1919
- name: Checkout Repo
2020
uses: actions/[email protected]
21+
with:
22+
fetch-tags: true
2123
- name: version
2224
id: version
2325
run: |
@@ -27,5 +29,5 @@ jobs:
2729
{ echo "tag=${tag}"; echo "version=${version}"; echo "major=${major}"; } >> "$GITHUB_OUTPUT"
2830
- name: force update major tag
2931
run: |
30-
git tag v${{ steps.version.outputs.major }} ${TAG_NAME}
32+
git tag v${{ steps.version.outputs.major }} ${{ steps.version.outputs.tag }}
3133
git push -f origin v${{ steps.version.outputs.major }}

0 commit comments

Comments
 (0)