Skip to content

Commit

Permalink
ci: fix tidy check
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jan 3, 2024
1 parent cb34809 commit 033af57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ jobs:
- name: Check if modifications were made
run: |
diff=$(git diff)
if [[ -n "$diff" ]]; then
if [[ -z "$diff" ]]; then
echo "Everything is tidy and generated."
exit 0
fi
cat << EOF >> "${GITHUB_STEP_SUMMARY}"
Run \`nix run .#generate\` to generate and tidy Go code."
\`\`\`diff
${diff}
\`\`\`
EOF
echo "Module is not tidy, check the GitHub run summary for the diff."
exit 1

0 comments on commit 033af57

Please sign in to comment.