only initially #195
Workflow file for this run
This file contains hidden or 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 autoupdate for template | |
on: | |
push: | |
branches: | |
- pre-commit-ci-update-config | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
if: ${{ github.triggering_actor == 'pre-commit[bot]' }} | |
steps: | |
- run: echo ${{ github.triggering_actor }} # TODO: remove this debug line | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BOT_GH_TOKEN }} | |
- run: pipx install pre-commit | |
- run: cd '{{cookiecutter.project_name}}' && pre-commit autoupdate | |
- uses: stefanzweifel/git-auto-commit-action@v5 |