mirror of https://github.com/WerWolv/ImHex
git: Fix changelogs of nightlies
This commit is contained in:
parent
cfe3c5b6df
commit
a667a1b6a9
|
|
@ -18,6 +18,15 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ImHex
|
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
|
- name: 📜 Set version variable
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -65,7 +74,7 @@ jobs:
|
||||||
cd ImHex
|
cd ImHex
|
||||||
echo "## Nightly ${GITHUB_SHA::7} Changelog" > changelog.md
|
echo "## Nightly ${GITHUB_SHA::7} Changelog" > changelog.md
|
||||||
git fetch --tags --recurse-submodules=no
|
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
|
- name: 📦 Update Pre-Release
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -74,7 +83,7 @@ jobs:
|
||||||
cd ImHex
|
cd ImHex
|
||||||
|
|
||||||
# Move nightly tag to latest commit
|
# Move nightly tag to latest commit
|
||||||
git tag -f nightly
|
git tag -f nightly HEAD
|
||||||
git push origin nightly --force
|
git push origin nightly --force
|
||||||
|
|
||||||
# Auth for GitHub CLI
|
# Auth for GitHub CLI
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue