Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/commit-formatted-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ else
git checkout ${GITHUB_BRANCH}
git commit -am "Format code"
git push --set-upstream origin ${GITHUB_BRANCH}
# Fail so unformatted code never shows a green check. Pushes made with GITHUB_TOKEN don't start
# workflows, so the formatting commit is only checked once the author pushes again.
echo "::error::Unformatted code. Pushed a formatting commit; pull it and push again to re-run CI."
exit 1
fi
Loading