blob: dcd659090d39a84bc20509f3cb9bfdef1f13918f [file] [log] [blame] [edit]
#!/usr/bin/env bash
set -eufo pipefail
# We want to see what's going on
set -x
# The ruby version may have been set by the CI runner. Stash
# changes while we check to see if we need to reformat the
# code.
git config user.email "[email protected]"
git config user.name "CI Build"
git commit -am 'Temp commit to allow format to run cleanly'
# Fail the build if the format script needs to be re-run
./scripts/format.sh
git diff --exit-code
# Now we're made it out, reapply changes made by the build
# runner
git reset --soft HEAD^