We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d151c8 commit 62531eaCopy full SHA for 62531ea
.github/workflows/static_checks.yml
@@ -32,7 +32,7 @@ jobs:
32
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33
run: |
34
if [ "${{ github.event_name }}" == "pull_request" ]; then
35
- files=$(gh pr diff ${{ github.event.pull_request.number }} --name-only)
+ files=$(git diff-tree --no-commit-id --name-only -r HEAD~${{ github.event.pull_request.commits }}..HEAD 2> /dev/null || true)
36
elif [ "${{ github.event_name }}" == "push" -a "${{ github.event.forced }}" == "false" -a "${{ github.event.created }}" == "false" ]; then
37
files=$(git diff-tree --no-commit-id --name-only -r ${{ github.event.before }}..${{ github.event.after }} 2> /dev/null || true)
38
fi
0 commit comments