From c561944ef3f1cf0f8a6411e5b3e9f24ccd4b1b1c Mon Sep 17 00:00:00 2001 From: Oscar Reimer Date: Tue, 5 Nov 2024 14:19:08 +0100 Subject: [PATCH] Do not include release* as previous tag when calculating checksum --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 344fc0a9..f7f3d523 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: id: next-latest-tag run: | CURRENT_TAG=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.tag_name') - PREVIOUS_TAG=$(git describe --tags --abbrev=0 $CURRENT_TAG^) + PREVIOUS_TAG=$(git describe --tags --abbrev=0 $CURRENT_TAG^ --exclude release*) echo "next_latest_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT - uses: actions/checkout@v4