Updates #9
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-latest | |
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: pip install pre-commit | |
- name: Run pre-commit autoupdate | |
run: > | |
pre-commit autoupdate | |
--repo https://github.com/pre-commit/pre-commit-hooks | |
--repo https://github.com/editorconfig-checker/editorconfig-checker.python | |
--repo https://github.com/crate-ci/typos | |
--repo https://github.com/EmbarkStudios/cargo-deny | |
- run: pre-commit run --all-files | |
- uses: peter-evans/create-pull-request@v7.0.5 | |
if: ${{ success() }} | |
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. | |
- uses: peter-evans/create-pull-request@v7.0.5 | |
if: ${{ failure() }} | |
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. | |
**Warning**: Some checks did not succeed. Please check the [action output][run] before merging this PR. | |
[run]: https://github.com/asonnino/shamir-bip39/actions/runs/${{ github.run_id }} |