Skip to content

Commit

Permalink
Testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Nov 30, 2023
1 parent fa794de commit 4e2da12
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/suggest_style.yml
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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 4e2da12

Please sign in to comment.