Skip to content

Commit

Permalink
fix: update formatting_testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
houndlord authored Jun 13, 2024
1 parent 98aef39 commit 2efdd81
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/formatting_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ jobs:
- name: pip freeze
run: python -m pip freeze --local
shell: bash


- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44

- name: run pre-commit
run: pre-commit run --color=always --show-diff-on-failure
run: |
FILES="${{ steps.changed-files.outputs.all_changed_files }}"
if [ -n "$FILES" ]; then
echo "$FILES" | xargs pre-commit run --files
else
echo "No files to check."
fi
shell: bash

0 comments on commit 2efdd81

Please sign in to comment.