Skip to content

Commit d6e8f0d

Browse files
authored
Make sure it uses the latest available tag for generating beta changelog (#1400)
1 parent 122ac02 commit d6e8f0d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/beta.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
uses: actions/checkout@v3
1717
with:
1818
ref: 'dev'
19+
fetch-depth: 0
1920
- name: Configure bot user
2021
run: |
2122
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
@@ -28,7 +29,9 @@ jobs:
2829
gh release delete beta --yes
2930
fi
3031
# Create new beta draft release with generated notes
31-
gh release create beta --title "Beta Release" --draft --generate-notes
32+
# Make sure the latest tag is correct, even if the current commit is already tagged
33+
LATEST_TAG=$(git describe --tags --abbrev=0)
34+
gh release create beta --title "Beta Release" --draft --generate-notes --notes-start-tag "$LATEST_TAG"
3235
gh release view beta > temp_change.md
3336
- name: Tweak changelogs
3437
id: tweak-changelogs

0 commit comments

Comments
 (0)