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 265ea85
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/pr_change_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- 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
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 265ea85

Please sign in to comment.