forked from commaai/msgq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add job to update pre-commit hooks (commaai#434)
- Loading branch information
1 parent
6e32e41
commit ae896d9
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: repo | ||
|
||
on: | ||
schedule: | ||
- cron: "0 15 * * 2" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pre-commit-autoupdate: | ||
name: pre-commit autoupdate | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: ghcr.io/commaai/cereal:latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: pre-commit autoupdate | ||
run: | | ||
git config --global --add safe.directory '*' | ||
pre-commit autoupdate | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Update pre-commit hook versions | ||
title: 'pre-commit: autoupdate hooks' | ||
branch: pre-commit-updates | ||
base: master | ||
delete-branch: true |