ci: use env in update-maintainers changes summary

Use env variables in the changes summary, to avoid string escape issues
with injecting template strings directly into the script.
This commit is contained in:
Matt Sturgeon 2025-07-02 16:59:38 +01:00 committed by Austin Horstman
parent be8f7e100f
commit bafcf33687

View file

@ -139,10 +139,13 @@ jobs:
--label "dependencies" \
--label "maintainers"
- name: Summary
env:
has_changes: ${{ steps.check-changes.outputs.has_changes }}
changes: ${{ steps.check-changes.outputs.changes_summary }}
run: |
if [[ "${{ steps.check-changes.outputs.has_changes }}" == "true" ]]; then
if [[ "$has_changes" == "true" ]]; then
echo "✅ Successfully created PR with maintainer updates"
echo "📊 Changes: ${{ steps.check-changes.outputs.changes_summary }}"
echo "📊 Changes: $changes"
else
echo " No changes detected - maintainers list is up to date"
fi