This action runs pre-commit autoupdate command to update the versions in the pre-commit yaml file and makes a PR to the repo for updates
Insert into part of the steps workflow
steps:
- uses: SPHTech-Platform/gha-pre-commit-autoupdate@main
name: Update pre-commit config automatically
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
For this to work, Github Org admins must allow Github Actions to make PR requests.
You can find it under Settings > Actions > General from the Organization page.