From 466f93c16c8396c19147c96a488075655efef2a1 Mon Sep 17 00:00:00 2001 From: Candy Tsai Date: Fri, 6 Sep 2024 15:20:51 +0800 Subject: [PATCH] Fetch tags before setting LATEST_TAG --- .github/workflows/publish-latest-plugin-zip.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-latest-plugin-zip.yml b/.github/workflows/publish-latest-plugin-zip.yml index c8f80a2..a878adc 100644 --- a/.github/workflows/publish-latest-plugin-zip.yml +++ b/.github/workflows/publish-latest-plugin-zip.yml @@ -23,6 +23,7 @@ jobs: - name: Get tag name id: get_tag run: | + git fetch --tags --force LATEST_TAG=$(git describe --tags --abbrev=0) echo "tag_name=$LATEST_TAG" >> $GITHUB_OUTPUT