Skip to content

Commit

Permalink
Merge pull request #5 from dwoz/fix-precommit
Browse files Browse the repository at this point in the history
Fix pre-commit
  • Loading branch information
dwoz authored Sep 7, 2024
2 parents 9211d23 + b9957e6 commit b48efa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pre-commit-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
sudo apt-get install -y git gcc make zlib1g-dev libc-dev libffi-dev g++ libxml2 libxml2-dev libxslt-dev libcurl4-openssl-dev libssl-dev libgnutls28-dev
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Pre-Commit
run: |
Expand All @@ -37,4 +39,4 @@ jobs:
- name: Check Changed Files On PR
if: github.event_name == 'pull_request' && fromJSON(inputs.changed-files)['repo'] == 'true'
run: |
pre-commit run --show-diff-on-failure --color=always --files ${{ join(fromJSON(inputs.changed-files)['repo_files'], ' ') }}
pre-commit run --show-diff-on-failure --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}

0 comments on commit b48efa0

Please sign in to comment.