Skip to content

Commit

Permalink
Update pr-version-bump.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Sep 26, 2024
1 parent 3540a6f commit 4770a4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Fetch all tags
run: git fetch --tags --force

- name: Get Latest Tag
id: get_latest_tag
- name: Fetch tags from main
run: |
latest_tag=$(git describe --tags --abbrev=0 || echo "v0.0.0")
git fetch origin main --tags
latest_tag=$(git describe --tags --abbrev=0 origin/main)
echo "::set-output name=latest_tag::$latest_tag"
echo "Latest tag: $latest_tag"
Expand Down

0 comments on commit 4770a4b

Please sign in to comment.