test
All checks were successful
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 10s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Has been skipped

This commit is contained in:
2025-07-10 06:38:42 -07:00
parent 4eb9195975
commit b4172e4d2d

View File

@@ -5,7 +5,7 @@ on:
branches:
- master
paths:
- '.github/workflows/*.yml'
- '.gitea/workflows/*.yml'
- '**/Dockerfile'
- '**/*.sh'
- '!**/CHANGES.md'
@@ -187,7 +187,7 @@ generate-changelogs:
echo "[INFO] No changelog changes to commit."
fi
generate-build-info:
generate-build-info:
needs: generate-changelogs
runs-on: doc-docker-build2
strategy:
@@ -227,7 +227,7 @@ generate-changelogs:
image="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_ORG }}/${{ env.IMAGE_REPO_MINECRAFT }}:${{ matrix.version }}"
if ! docker pull "$image"; then
echo "[WARN] Failed to pull $image — setting fields to 'unknown/0'"
echo "[WARN] Failed to pull $image — setting fields to unknown/0"
digest="unknown"
size_bytes=0
else
@@ -257,17 +257,28 @@ generate-changelogs:
image_size_bytes: $image_size_bytes
}' > "$infofile"
echo "[INFO] Generated $infofile:"
cat "$infofile"
- name: Git status debug
run: |
cd upload-repo
echo "[DEBUG] Git status before commit:"
git status
echo "[DEBUG] Git diff:"
git diff "${{ matrix.version }}/build-info.json" || true
- name: Commit and push build-info
run: |
cd upload-repo
git config user.name "${{ secrets.GIT_USERNAME }}"
git config user.email "${{ secrets.GIT_EMAIL }}"
if git status --porcelain | grep .; then
git add "${{ matrix.version }}/build-info.json"
git commit -m "Update build-info on $(date -u +'%Y-%m-%dT%H:%M:%SZ')" || true
git commit -m "Update build-info for ${{ matrix.version }} on $(date -u +'%Y-%m-%dT%H:%M:%SZ')" || true
git push
# Optional: push lightweight tag for this build
TAG="build-${{ matrix.version }}"
git tag -d "$TAG" 2>/dev/null || true
git tag "$TAG"