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 2e26089
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 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,6 +55,8 @@ jobs:
- name: Add changed files
if: ${{ env.changes == 'true' }}
run: |
git config user.name "$USER_NAME"
git config user.email "$USER_EMAIL"
git checkout -b update_dependencies
git commit -a -m "Update style dependencies"
Expand Down

0 comments on commit 2e26089

Please sign in to comment.