The design language that makes your AI harness better at design.
JavaScript
Make the job summary reflect whether a sync commit actually pushed
Paul Bakaus166ec9a51e8e
diff --git a/.github/workflows/sync-generated-output.yml b/.github/workflows/sync-generated-output.ymlindex f77998922..9e5acbdfa 100644--- a/.github/workflows/sync-generated-output.yml+++ b/.github/workflows/sync-generated-output.yml@@ -78,6 +78,7 @@ jobs:fi- name: Commit generated output+ id: commitif: steps.drift.outputs.changed == 'true'run: |set -euo pipefail@@ -97,6 +98,7 @@ jobs:# The race that beat us was another sync (or the rebuilt output# matches the new main); nothing left to push.echo "No generated output drift after rebuild (attempt $attempt); nothing to push."+ echo "pushed=false" >> "$GITHUB_OUTPUT"exit 0figit commit -m "Sync generated provider output"@@ -104,6 +106,7 @@ jobs:git fetch origin mainif git merge-base --is-ancestor origin/main HEAD && git push origin HEAD:main; thenecho "Pushed generated output on attempt $attempt."+ echo "pushed=true" >> "$GITHUB_OUTPUT"exit 0fi@@ -125,4 +128,8 @@ jobs:- name: Summarize generated output commitif: steps.drift.outputs.changed == 'true'run: |- echo "Committed generated provider output directly to main." >> "$GITHUB_STEP_SUMMARY"+ if [ "${{ steps.commit.outputs.pushed }}" = "true" ]; then+ echo "Committed generated provider output directly to main." >> "$GITHUB_STEP_SUMMARY"+ else+ echo "Generated output drift resolved itself after a mid-run rebuild; nothing was pushed." >> "$GITHUB_STEP_SUMMARY"+ fi