git: Fix changelogs of nightlies

This commit is contained in:
WerWolv 2025-08-21 19:44:17 +02:00
parent cfe3c5b6df
commit a667a1b6a9
1 changed files with 11 additions and 2 deletions

View File

@ -18,6 +18,15 @@ jobs:
uses: actions/checkout@v4
with:
path: ImHex
fetch-depth: 0
fetch-tags: true
- name: 🌃 Check for new commits
run: |
if [ -z "$(git log nightly..HEAD --oneline)" ]; then
echo "No new commits since last nightly. Exiting."
exit 0
fi
- name: 📜 Set version variable
run: |
@ -65,7 +74,7 @@ jobs:
cd ImHex
echo "## Nightly ${GITHUB_SHA::7} Changelog" > changelog.md
git fetch --tags --recurse-submodules=no
git log tags/nightly..HEAD --oneline --no-merges --pretty=format:'* %s' >> changelog.md
git log nightly..HEAD --oneline --no-merges --pretty=format:'* %s' >> changelog.md
- name: 📦 Update Pre-Release
run: |
@ -74,7 +83,7 @@ jobs:
cd ImHex
# Move nightly tag to latest commit
git tag -f nightly
git tag -f nightly HEAD
git push origin nightly --force
# Auth for GitHub CLI