Skip to content

Commit

Permalink
futz
Browse files Browse the repository at this point in the history
  • Loading branch information
searls committed Jun 17, 2024
1 parent 2927110 commit bb6fee9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,19 @@ runs:
run: bundle exec standardrb --fix
continue-on-error: true

- name: Commit changes
- name: Check for autofixed files
id: check_changes
shell: bash
run: |
if [ -n "$(git diff --name-only --diff-filter=M)" ]; then
echo "::set-output name=changes::true"
else
echo "::set-output name=changes::false"
fi
- name: Commit autofixes
shell: bash
if: steps.check_changes.outputs.changes == 'true'
run: |
git config --global user.name 'standard-ruby-action[bot]'
git config --global user.email 'standard-ruby-action[bot]@users.noreply.github.com'
Expand Down

0 comments on commit bb6fee9

Please sign in to comment.