diff --git a/.github/workflows/autofmt.yml b/.github/workflows/autofmtpr.yml similarity index 85% rename from .github/workflows/autofmt.yml rename to .github/workflows/autofmtpr.yml index 6ae37700b0..a2af0044bd 100644 --- a/.github/workflows/autofmt.yml +++ b/.github/workflows/autofmtpr.yml @@ -1,8 +1,6 @@ on: - schedule: - # Run daily - - cron: "0 22 * * *" -name: Auto-format + pull_request: +name: Auto-format Pull Request jobs: format: runs-on: ubuntu-latest @@ -24,5 +22,5 @@ jobs: run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - git commit -am "chore(autofmt): Automated formatting" + git commit -a --amend git push