Fix rollout #72
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 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 }} |