This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
samples: Use EXTRA_CONF_FILE instead of OVERLAY_CONFIG #752
Workflow file for this run
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: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
container: | |
image: kiwicom/pre-commit:3.0.4 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run pre-commit | |
run: | | |
git config --global --add safe.directory $GITHUB_WORKSPACE | |
CODE=0 # run pre-commit | |
for CID in `git rev-list --reverse origin/main..`; do | |
git show $CID -s --format=' pre-commit %h ("%s")' | |
git checkout -f -q $CID | |
pre-commit run --color always --show-diff-on-failure --from-ref $CID^ --to-ref $CID || CODE=$? | |
done | |
exit $CODE |