Skip to content

Commit f77c9e0

Browse files
committed
Avoid using third-party action for finding latest tag
Signed-off-by: Caleb Xu <[email protected]>
1 parent a044d7d commit f77c9e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
uses: reloc8/[email protected]
2222
id: fetch-latest-release
2323
- name: Set Env Tags
24-
run: echo RELEASE_TAG=${{ steps.fetch-latest-release.outputs.latest-release }} >> $GITHUB_ENV
24+
run: |
25+
git fetch --tags
26+
echo "RELEASE_TAG=$(git describe --abbrev=0 --tags)" >> "${GITHUB_ENV}"
2527
- name: set short sha
2628
run: echo SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV
2729

0 commit comments

Comments
 (0)