Skip to content

Fix rollout

Fix rollout #72

name: pre-commit check
on: [pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
- name: If needed, commit back changes after running the pre-commit hooks
if: failure()
run: |
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
# git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git commit -am "chore: commit changes after running pre-commit hooks"
git pull HEAD:${{ github.head_ref }}
- name: Push changes
if: failure()
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}