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.
2 parents 86415f0 + 950743c commit 29b3d9eCopy full SHA for 29b3d9e
.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=$(git diff-tree --no-commit-id --name-only -r HEAD~${{ github.event.pull_request.commits }}..HEAD 2> /dev/null || true)
+ files=$(git diff-tree --no-commit-id --name-only -r HEAD^1..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