From fe0e278706b7354104ffe9353a17f789f72dda90 Mon Sep 17 00:00:00 2001 From: Greg Chadwick Date: Mon, 8 May 2023 15:55:53 +0100 Subject: [PATCH] Fixes foo --- .github/workflows/pr_change_check.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr_change_check.yml b/.github/workflows/pr_change_check.yml index dd876e03026199..56002de705afe6 100644 --- a/.github/workflows/pr_change_check.yml +++ b/.github/workflows/pr_change_check.yml @@ -21,13 +21,9 @@ jobs: - name: Determine changed files run: | - tgt_branch="${{ github.base_ref }}" - merge_base="$(git merge-base HEAD origin/$tgt_branch)" || { - echo >&2 "Failed to find fork point for origin/$tgt_branch." - exit 1 - } - echo "Considering changes since $merge_base" - git diff --name-only "$merge_base" > $HOME/changed_files + git fetch origin + tgt_ref="${{ github.base_ref }}" + git diff --name-only HEAD "origin/$tgt_ref" > $HOME/changed_files - name: Show files changed run: cat $HOME/changed_files