fix: auto-commit only from syntaxes/ #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: pre-commit | |
on: | |
push: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
pre-commit: | |
runs-on: macos-12 | |
steps: | |
- name: Install pre-commit & yamllint | |
run: brew install pre-commit yamllint | |
- name: Show pre-commit version | |
run: pre-commit --version | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Pre-commit autoupdate | |
run: pre-commit autoupdate && pre-commit clean | |
- id: file_changes | |
uses: trilom/[email protected] | |
with: | |
output: ' ' | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: --files ${{ steps.file_changes.outputs.files }} --show-diff-on-failure | |
env: | |
PRE_COMMIT_VERBOSE: 1 |