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 ba20004 commit 70e0a27Copy full SHA for 70e0a27
.github/workflows/pre-commit.yaml
@@ -16,12 +16,17 @@ jobs:
16
uses: actions/setup-python@v2
17
with:
18
python-version: ${{ matrix.python-version }}
19
- - name: Get changed files
+ - name: Fetch all branches and tags
20
+ run: git fetch --prune --unshallow
21
+ - name: Determine changed files
22
id: changed-files
- uses: tj-actions/[email protected]
23
+ run: |
24
+ CHANGED_FILES=$(git diff --name-only HEAD^ | xargs)
25
+ echo "Changed files: $CHANGED_FILES"
26
+ echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
27
- name: Run Check
28
uses: pre-commit/[email protected]
29
30
extra_args: >-
- --files ${{ steps.changed-files.outputs.all_changed_files }}
31
+ --files ${{ env.CHANGED_FILES }}
32
--hook-stage manual
0 commit comments