-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa794de
commit 4e2da12
Showing
1 changed file
with
14 additions
and
4 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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
name: Style | ||
name: Suggest style upgrades | ||
|
||
#on: | ||
# schedule: | ||
# - cron: "0 0 * * *" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
push: | ||
branches: | ||
- main | ||
- 'version-**' | ||
pull_request: | ||
|
||
jobs: | ||
update-style: | ||
|
@@ -34,6 +41,7 @@ jobs: | |
|
||
- name: Run style check | ||
run: pre-commit run --all-files --show-diff-on-failure | ||
continue-on-error: true | ||
|
||
- name: Check for changes | ||
id: check_for_changes | ||
|
@@ -47,11 +55,13 @@ jobs: | |
- name: Add changed files | ||
if: ${{ env.changes == 'true' }} | ||
run: | | ||
git config user.name github_bot | ||
git config user.email [email protected] | ||
git checkout -b update_dependencies | ||
git commit -a -m "Update style dependencies" | ||
- name: Create pull request | ||
if: ${{ env.changes == 'true' }} | ||
run: gh pr create -B main -H update_dependencies --title 'Update style dependencies' | ||
run: gh pr create -B main -H update_dependencies --title 'Update style dependencies' --body "Created automatically by GHActions" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |