Skip to content

Commit 9ddf921

Browse files
caxu-rhacornett21
authored andcommitted
Avoid using third-party action for finding latest tag
Signed-off-by: Caleb Xu <[email protected]>
1 parent a044d7d commit 9ddf921

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build-main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v6
20-
- name: Fetch latest release version
21-
uses: reloc8/[email protected]
22-
id: fetch-latest-release
2320
- name: Set Env Tags
24-
run: echo RELEASE_TAG=${{ steps.fetch-latest-release.outputs.latest-release }} >> $GITHUB_ENV
21+
run: |
22+
git fetch --tags
23+
echo "RELEASE_TAG=$(git describe --abbrev=0 --tags)" >> "${GITHUB_ENV}"
2524
- name: set short sha
2625
run: echo SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV
2726

0 commit comments

Comments
 (0)