Skip to content

Commit

Permalink
update changed file check to pull from closed ref (#458)
Browse files Browse the repository at this point in the history
Co-authored-by: Katherine Fairchild <[email protected]>
  • Loading branch information
kvfairchild and Katherine Fairchild authored Jan 7, 2024
1 parent b84bb85 commit f0dd50f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/score_new_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ jobs:
python -m pip install ".[test]"
- name: Save changed files to env var
run: echo "CHANGED_FILES=$(git diff --name-only origin/master~1 origin/$GITHUB_HEAD_REF | tr '\n' ' ')" >> $GITHUB_ENV
run: |
git fetch origin refs/pull/${{ github.event.number }}/head
MERGE_COMMIT=$(git log --format='%H %P' --all | grep "$(git rev-parse FETCH_HEAD)\$" | cut -f1 -d' ')
echo "CHANGED_FILES=$(git diff --name-only origin/master~1 $MERGE_COMMIT | tr '\n' ' ')" >> $GITHUB_ENV
- name: Get plugin info
id: getpluginfo
Expand Down

0 comments on commit f0dd50f

Please sign in to comment.