test
Some checks failed
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) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-debian (push) Successful in 5s
Build and Push Teamspeak Images on Base Image Update / build-basic (push) Successful in 7s
Build and Push Teamspeak Images on Base Image Update / update-base-digest-cache (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / generate-build-info (push) Failing after 6s
Build and Push Teamspeak Images on Base Image Update / generate-changelogs (push) Has been skipped
Some checks failed
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) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-debian (push) Successful in 5s
Build and Push Teamspeak Images on Base Image Update / build-basic (push) Successful in 7s
Build and Push Teamspeak Images on Base Image Update / update-base-digest-cache (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / generate-build-info (push) Failing after 6s
Build and Push Teamspeak Images on Base Image Update / generate-changelogs (push) Has been skipped
This commit is contained in:
@@ -304,24 +304,32 @@ jobs:
|
||||
run: |
|
||||
git config user.name "${{ secrets.GIT_USERNAME }}"
|
||||
git config user.email "${{ secrets.GIT_EMAIL }}"
|
||||
|
||||
if git status --porcelain | grep .; then
|
||||
# Create a temporary branch
|
||||
TEMP_BRANCH="tmp-buildinfo-$(date -u +%s)"
|
||||
git checkout -b "$TEMP_BRANCH"
|
||||
|
||||
git add */build-info.json
|
||||
git commit -m "Update build-info on $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
||||
git push
|
||||
|
||||
for version in alpine debian basic; do
|
||||
TAG="build-$version"
|
||||
git tag -d "$TAG" 2>/dev/null || true
|
||||
git tag "$TAG"
|
||||
git push origin "$TAG" --force
|
||||
done
|
||||
# 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
|
||||
echo "[INFO] No build-info changes to commit."
|
||||
fi
|
||||
|
||||
ls -l basic/build-info.json || echo "❌ build-info not written"
|
||||
cat basic/build-info.json || echo "❌ empty build-info"
|
||||
|
||||
generate-changelogs:
|
||||
needs:
|
||||
- check-for-changes
|
||||
|
||||
Reference in New Issue
Block a user