Skip to content

Commit

Permalink
Fixes foo
Browse files Browse the repository at this point in the history
  • Loading branch information
GregAC committed May 8, 2023
1 parent 2f87aad commit fe0e278
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/pr_change_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe0e278

Please sign in to comment.