diff --git a/.github/workflows/suggest_style.yml b/.github/workflows/suggest_style.yml index 8b0c7417ee7..dfac2ab8a37 100644 --- a/.github/workflows/suggest_style.yml +++ b/.github/workflows/suggest_style.yml @@ -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,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"