From 4770a4be77434ab6fabb5159179f75e0c81d63f5 Mon Sep 17 00:00:00 2001 From: barrfalk Date: Thu, 26 Sep 2024 16:44:43 -0700 Subject: [PATCH] Update pr-version-bump.yml --- .github/workflows/pr-version-bump.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"