test
All checks were successful
Build and Push Teamspeak Images on Base Image Update / check-for-changes (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-alpine (push) Has been skipped
Build and Push Teamspeak Images on Base Image Update / build-debian (push) Has been skipped
Build and Push Teamspeak Images on Base Image Update / build-basic (push) Has been skipped
Build and Push Teamspeak Images on Base Image Update / update-base-digest-cache (push) Has been skipped
Build and Push Teamspeak Images on Base Image Update / generate-build-info (push) Has been skipped
Build and Push Teamspeak Images on Base Image Update / generate-changelogs (push) Has been skipped

This commit is contained in:
2026-01-11 06:43:09 -08:00
parent 764077ab0d
commit feb4aaac03

View File

@@ -393,10 +393,28 @@ jobs:
run: | run: |
git config user.name "${{ secrets.GIT_USERNAME }}" git config user.name "${{ secrets.GIT_USERNAME }}"
git config user.email "${{ secrets.GIT_EMAIL }}" git config user.email "${{ secrets.GIT_EMAIL }}"
if git status --porcelain | grep .; then if git status --porcelain | grep .; then
# Create a temporary branch
TEMP_BRANCH="tmp-changelog-$(date -u +%s)"
git checkout -b "$TEMP_BRANCH"
git add */CHANGES.md git add */CHANGES.md
git commit -m "Update changelogs on $(date -u +'%Y-%m-%dT%H:%M:%SZ')" --no-verify git commit -m "Update changelogs on $(date -u +'%Y-%m-%dT%H:%M:%SZ')" --no-verify
git push
# Push temporary branch
git push origin "$TEMP_BRANCH"
# Merge temporary branch into main safely
git checkout main
git fetch origin main
git merge --no-ff --no-edit "$TEMP_BRANCH"
# Push main branch
git push origin main
# Delete temporary branch remotely
git push origin --delete "$TEMP_BRANCH" || true
else else
echo "[INFO] No changelog changes to commit." echo "[INFO] No changelog changes to commit."
fi fi