Commit 18d1ce3f authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

ops: Have check-changed require a rebuild on bad refs (#4242)

parent 25be16bf
---
'@eth-optimism/ci-builder': patch
---
Require rebuild on null ref
...@@ -33,6 +33,13 @@ else ...@@ -33,6 +33,13 @@ else
exit 0 exit 0
fi fi
if [ "$REF" = "null" ]; then
echoerr "Bad ref, requiring a total rebuild."
echo "TRUE"
exit 1
fi
echoerr "Base Ref: $REF" echoerr "Base Ref: $REF"
echoerr "Base Ref SHA: $(git show-branch --sha1-name "$REF")" echoerr "Base Ref SHA: $(git show-branch --sha1-name "$REF")"
echoerr "Curr Ref: $(git rev-parse --short HEAD)" echoerr "Curr Ref: $(git rev-parse --short HEAD)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment