From 346103dfb40555a3315352559a7f8afc839432b2 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 15 Jan 2024 16:20:53 +0200 Subject: [PATCH] Do not run squawk tests outside of PR builds --- script/squawk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/squawk b/script/squawk index e4ade6fbed..0fb3e5a332 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"