Skip to content

Commit 1e93876

Browse files
committed
Use HEAD~1 and HEAD instead of github.event
1 parent 5b31c2e commit 1e93876

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/python-testing.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
- name: Check for file changes
5050
id: check_files
5151
run: |
52-
can_run=$(git diff --name-only ${{ github.event.after }} ${{ github.event.before }} | \
52+
# ${{ github.event.after }} ${{ github.event.before }}
53+
can_run=$(git diff --name-only HEAD~1 HEAD | \
5354
egrep -q '.github/workflows/|pyproject.toml|setup.cfg|\.py$' && echo 1 || echo 0)
5455
echo "can_run=$can_run" >> $GITHUB_OUTPUT
5556

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy