Skip to content

continue-on-error

continue-on-error #12

Workflow file for this run

name: format C code
on:
pull_request:
push:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
id: pre-commit
with:
extra_args: --all-files
continue-on-error: true
- name: Print pre-commit result
run: |
echo "Pre-commit result: ${{ steps.pre-commit.outputs.result }}"
- name: Push changes back to repo
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "style: auto format code with pre-commit"
git push