From 2ae87fb55a3ecca6e6e4bf39c1a5b336fca48b7f Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Fri, 26 Jul 2024 08:49:44 +1000 Subject: [PATCH] chore: attempt to auto format PRs --- .github/workflows/{autofmt.yml => autofmtpr.yml} | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) rename .github/workflows/{autofmt.yml => autofmtpr.yml} (85%) 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