test
This commit is contained in:
@@ -115,8 +115,9 @@ jobs:
|
|||||||
IMAGE="$IMAGE_REGISTRY/$IMAGE_ORG/$IMAGE_REPO_MINECRAFT:${{ matrix.version }}"
|
IMAGE="$IMAGE_REGISTRY/$IMAGE_ORG/$IMAGE_REPO_MINECRAFT:${{ matrix.version }}"
|
||||||
docker buildx build --platform linux/amd64 --push -t "$IMAGE" "./${{ matrix.version }}"
|
docker buildx build --platform linux/amd64 --push -t "$IMAGE" "./${{ matrix.version }}"
|
||||||
|
|
||||||
generate-changelogs:
|
generate-changelogs:
|
||||||
needs: build-minecraft-images
|
needs: poll-debian-base-and-detect-changes
|
||||||
|
if: needs.poll-debian-base-and-detect-changes.outputs.digest_changed == 'true' || needs.poll-debian-base-and-detect-changes.outputs.versions_changed != ''
|
||||||
runs-on: doc-docker-build2
|
runs-on: doc-docker-build2
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -139,7 +140,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Update changelog
|
- name: Generate changelog
|
||||||
run: |
|
run: |
|
||||||
cd upload-repo
|
cd upload-repo
|
||||||
changelog="${{ matrix.version }}/CHANGES.md"
|
changelog="${{ matrix.version }}/CHANGES.md"
|
||||||
@@ -153,12 +154,26 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "## $(date -u +'%Y-%m-%dT%H:%M:%SZ')\n" >> "$changelog"
|
echo -e "## $(date -u +'%Y-%m-%dT%H:%M:%SZ')\n" >> "$changelog"
|
||||||
|
|
||||||
if [ -n "$last_commit" ]; then
|
if [ -n "$last_commit" ]; then
|
||||||
git log "${last_commit}..HEAD" --pretty=format:"- %s (%an)" | head -n 10 >> "$changelog"
|
COMMITS=$(git log "${last_commit}..HEAD" --pretty=format:"- %s (%an)" || true)
|
||||||
else
|
|
||||||
git log -n 10 --pretty=format:"- %s (%an)" >> "$changelog"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$COMMITS" ]; then
|
||||||
|
echo "[INFO] No new commits since last build. Showing latest 5 instead."
|
||||||
|
COMMITS=$(git log -n 5 --pretty=format:"- %s (%an)" || true)
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$COMMITS" >> "$changelog"
|
||||||
|
|
||||||
|
- name: Show git status (debug)
|
||||||
|
run: |
|
||||||
|
cd upload-repo
|
||||||
|
echo "[DEBUG] Git status before commit:"
|
||||||
|
git status
|
||||||
|
echo "[DEBUG] Git diff:"
|
||||||
|
git diff
|
||||||
|
|
||||||
- name: Commit and push changelog
|
- name: Commit and push changelog
|
||||||
run: |
|
run: |
|
||||||
cd upload-repo
|
cd upload-repo
|
||||||
|
|||||||
Reference in New Issue
Block a user