Update ruby.yml

Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
This commit is contained in:
VetheonGames 2023-07-27 18:10:50 -06:00 committed by GitHub
parent a0718027ab
commit 59ecc362f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."