From ecf262e37a5905d3fc526f7e127167fdbd4acf68 Mon Sep 17 00:00:00 2001 From: rmch91 Date: Wed, 26 Jun 2024 23:18:19 +0200 Subject: [PATCH] changes --- ci-scripts/deprecated-annotation-validator.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci-scripts/deprecated-annotation-validator.sh b/ci-scripts/deprecated-annotation-validator.sh index 4951945ae84..7579cc68451 100644 --- a/ci-scripts/deprecated-annotation-validator.sh +++ b/ci-scripts/deprecated-annotation-validator.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash -changed_files=$(git diff --name-only origin/main..HEAD) +BASE_BRANCH=${GITHUB_BASE_REF:-main} + +git fetch origin $BASE_BRANCH + +changed_files=$(git diff --name-only origin/$BASE_BRANCH..HEAD) invalid_files=()