Commit 26a8b239 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

ci: Fix check-changed (#3420)

check-changed was breaking when develop -> master PRs were open.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 31099c93
...@@ -27,6 +27,12 @@ else ...@@ -27,6 +27,12 @@ else
echoerr "$PR" echoerr "$PR"
REF=$(echo "$PR" | jq -r ".base.ref") REF=$(echo "$PR" | jq -r ".base.ref")
if [ "$REF" = "master" ]; then
echoerr "Base ref is master, requiring a total rebuild."
echo "TRUE"
exit 0
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