From 58fa47a3c7520e8c563fa9b3a5680a47b459ea08 Mon Sep 17 00:00:00 2001 From: Jademalo <386846+Jademalo@users.noreply.github.com> Date: Thu, 14 Jul 2022 09:11:09 +0100 Subject: [PATCH] Fix BigWigs packager by checking out latest tag --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d73824..92cbb42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,13 @@ jobs: # which is useful for controlling the length of the automated changelog fetch-depth: 50 + # Checkout the latest tag to prevent the duplicate run check + - name: Checkout latest tag + run: | + git fetch --tags + latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) + git checkout $latestTag + # once cloned, we just run the GitHub Action for the packager project - name: Package and Release uses: BigWigsMods/packager@v2