From 3b3e4f6dce774bb847bad1da599e236dc76e18a3 Mon Sep 17 00:00:00 2001 From: Musholic Date: Tue, 16 Sep 2025 15:08:00 +0200 Subject: [PATCH] Make sure it uses the latest available tag for generating beta changelog --- .github/workflows/beta.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 4196ab336..a8f252382 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -16,6 +16,7 @@ jobs: uses: actions/checkout@v3 with: ref: 'dev' + fetch-depth: 0 - name: Configure bot user run: | git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" @@ -28,7 +29,9 @@ jobs: gh release delete beta --yes fi # Create new beta draft release with generated notes - gh release create beta --title "Beta Release" --draft --generate-notes + # Make sure the latest tag is correct, even if the current commit is already tagged + LATEST_TAG=$(git describe --tags --abbrev=0) + gh release create beta --title "Beta Release" --draft --generate-notes --notes-start-tag "$LATEST_TAG" gh release view beta > temp_change.md - name: Tweak changelogs id: tweak-changelogs