Skip to content

Commit 8439f18

Browse files
authored
Update python-stylecheck action with required checkout modifier
Pull in required commits for the CHANGED_FILES check like in the upstream example. Signed-off-by: Jonas Bardino <bardino@science.ku.dk>
1 parent b5ba754 commit 8439f18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/python-stylecheck.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Check out source repository
1919
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # This is necessary to get the commits
2022
- name: Get changed python files between base and head
2123
run: >
2224
echo "CHANGED_FILES=$(echo $(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- | grep \.py))" >> $GITHUB_ENV

0 commit comments

Comments
 (0)