From 59ecc362f3f6fe4385ccc24c0ddd21d46db0e5bb Mon Sep 17 00:00:00 2001 From: VetheonGames <76892542+VetheonGames@users.noreply.github.com> Date: Thu, 27 Jul 2023 18:10:50 -0600 Subject: [PATCH] Update ruby.yml Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com> --- .github/workflows/ruby.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index dccdbb5..6ca298e 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -3,8 +3,6 @@ name: Ruby on: push: branches: [ "main" ] - pull_request: - branches: [ "main" ] permissions: contents: read @@ -28,3 +26,16 @@ jobs: run: gem install rubocop - name: Run tests run: rubocop -A --fail-level warn + - name: Commit changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add -A + git commit -m "Apply RuboCop auto-correct" || echo "No changes to commit" + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + title: "Apply RuboCop auto-correct" + branch: "rubocop-autocorrect" + delete-branch: true + body: "This PR applies RuboCop auto-corrections to the codebase."