Skip to content

Commit

Permalink
action: pre-commit always
Browse files Browse the repository at this point in the history
as long as get-changed files doesn't support force push or rebases
  • Loading branch information
v1v committed Aug 25, 2022
1 parent da20ec7 commit c164e06
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
with: ## let's skip to run for all the files
extra_args: --help
- id: files
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
- name: Configure PATH
run: echo "${GITHUB_WORKSPACE}/.ci/scripts" >> $GITHUB_PATH
- name: Precommit changes
run: |
for changed_file in ${{ steps.files.outputs.all }}; do
pre-commit run --files "${changed_file}"
done
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507

0 comments on commit c164e06

Please sign in to comment.