forked from mealie-recipes/mealie
-
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.
add scheduled pre-commit hooks update PR
- Loading branch information
1 parent
2ad8452
commit 459f898
Showing
1 changed file
with
32 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,32 @@ | ||
name: Scheduled Checks | ||
|
||
on: | ||
schedule: | ||
# Every monday at 7 AM | ||
- cron: 0 7 * * 1 | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Checkout 🛎 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Update pre-commit Hooks | ||
- uses: vrslev/[email protected] | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
# This doesn't currently work for us because it creates the PR but the workflows don't run. | ||
# TODO: Provide a personal access token as a parameter here, that solves that problem. | ||
# https://github.com/peter-evans/create-pull-request | ||
with: | ||
commit-message: "Update pre-commit hooks" | ||
branch: "fix/update-pre-commit-hooks" | ||
delete-branch: true | ||
base: mealie-next | ||
title: "fix(auto): Update pre-commit hooks" | ||
body: "Auto-generated by `.github/workflows/scheduled-checks.yml`" |