Skip to content

Commit 5a5a9ca

Browse files
committed
[ci] Stash changes made by the runner when checking if code needs reformatting
1 parent 09ca2c4 commit 5a5a9ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/github-actions/ci-build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ set -eufo pipefail
44
# We want to see what's going on
55
set -x
66

7+
# The ruby version may have been set by the CI runner. Stash
8+
# changes while we check to see if we need to reformat the
9+
# code.
10+
git stash
11+
712
# Fail the build if the format script needs to be re-run
813
./scripts/format.sh
914
git diff --exit-code
1015

16+
# Now we're made it out, reapply changes made by the build
17+
# runner
18+
git stash apply
19+
1120
# The NPM repository rule wants to write to the HOME directory
1221
# but that's configured for the remote build machines, so run
1322
# that repository rule first so that the subsequent remote

0 commit comments

Comments
 (0)