From 00fe14aaa8262dd9f6dcfdeaf5ae5f567515810b Mon Sep 17 00:00:00 2001 From: bengtlofgren Date: Mon, 6 Nov 2023 20:05:45 +0100 Subject: [PATCH] trying this --- .github/workflows/validate-pregensis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-pregensis.yml b/.github/workflows/validate-pregensis.yml index 12c3d0765..5a1b99789 100644 --- a/.github/workflows/validate-pregensis.yml +++ b/.github/workflows/validate-pregensis.yml @@ -37,7 +37,7 @@ jobs: pr_name=$(echo "${{ github.event.pull_request.title }}" | tr '[:upper:]' '[:lower:]') if [[ "$pr_name" == *"update"* ]]; then - changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}) + changed_files=$(git diff --name-only main HEAD) num_changed_files=$(echo "$changed_files" | wc -l) if [ $num_changed_files -eq 1 ]; then python3 .github/workflows/scripts/validate_previous_genesis.py --folder $CHAIN_ID_FOLDER --filename $changed_files