Updates #15
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: Updates | |
on: | |
# every month | |
schedule: | |
- cron: '14 3 1 * *' | |
# on demand | |
workflow_dispatch: | |
jobs: | |
pre-commit: | |
name: "Update pre-commit hooks and run them on all files" | |
runs-on: ubuntu-ghcloud | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- run: rustup update stable | |
- run: sudo apt-get install protobuf-compiler | |
- run: cargo install cargo-sort@1.0.9 | |
- run: cargo install --locked cargo-deny@0.14.3 | |
- run: pip install pre-commit | |
- run: pre-commit autoupdate | |
- run: pre-commit run --all-files | |
- uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: chore/update-pre-commit-hooks | |
title: "chore: update pre-commit hooks" | |
commit-message: "chore: update pre-commit hooks" | |
body: Update pre-commit hooks to latest version. |