diff --git a/.github/workflows/pr-version-bump.yml b/.github/workflows/pr-version-bump.yml index a59d17c32..e4c475125 100644 --- a/.github/workflows/pr-version-bump.yml +++ b/.github/workflows/pr-version-bump.yml @@ -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"