Skip to content

Commit 54ee86c

Browse files
Copilotpelikhan
andcommitted
Update GitHub Action to format schema after download
Also apply the same fix to the daily-perf-improver GitHub Action that downloads the schema. This ensures consistent formatting across all build paths. Co-authored-by: pelikhan <[email protected]>
1 parent 721d8f7 commit 54ee86c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/actions/daily-perf-improver/build-steps/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,17 @@ runs:
125125
if [ -f pkg/workflow/schemas/github-workflow.json ]; then
126126
SIZE=$(wc -c < pkg/workflow/schemas/github-workflow.json)
127127
echo "✓ Downloaded GitHub Actions schema (${SIZE} bytes)" | tee -a build-steps.log
128+
echo "Formatting schema with prettier..." | tee -a build-steps.log
129+
prettier --write pkg/workflow/schemas/github-workflow.json --ignore-path /dev/null 2>&1 | tee -a build-steps.log
130+
echo "✓ Schema formatted" | tee -a build-steps.log
128131
else
129132
echo "✗ Failed to download GitHub Actions schema" | tee -a build-steps.log
130133
exit 1
131134
fi
132135
133136
END_TIME=$(date +%s)
134137
DURATION=$((END_TIME - START_TIME))
135-
echo "✓ Schema downloaded in ${DURATION}s" | tee -a build-steps.log
138+
echo "✓ Schema downloaded and formatted in ${DURATION}s" | tee -a build-steps.log
136139
echo "" | tee -a build-steps.log
137140
138141
- name: Build gh-aw Binary

pkg/workflow/.github/aw/actions-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"sha": "2028fbc5c25fe9cf00d9f06a71cc4710d4507903"
1212
}
1313
}
14-
}
14+
}

0 commit comments

Comments
 (0)