diff --git a/script/squawk b/script/squawk index e4ade6fbed6e77dd7fc791ed33988c02020f0078..0fb3e5a3325e8005fe4f0667debc7626cab5c9bd 100755 --- a/script/squawk +++ b/script/squawk @@ -6,6 +6,11 @@ set -e +if [ -z "$GITHUB_BASE_REF" ]; then + echo 'Not a pull request, skipping squawk modified migrations linting' + return 0 +fi + SQUAWK_VERSION=0.26.0 SQUAWK_BIN="./target/squawk-$SQUAWK_VERSION" SQUAWK_ARGS="--assume-in-transaction"