Skip to content

Commit

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

- name: Check for autofixed files
- name: Check for modified files
id: check_changes
shell: bash
run: |
if [ -n "$(git diff --name-only --diff-filter=M)" ]; then
echo "::set-output name=changes::true"
echo "standardrb_autofixes_found=true" >> $GITHUB_ENV
else
echo "::set-output name=changes::false"
echo "standardrb_autofixes_found=false" >> $GITHUB_ENV
fi
- name: Commit autofixes
shell: bash
if: steps.check_changes.outputs.changes == 'true'
if: env.standardrb_autofixes_found == '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 4672ee7

Please sign in to comment.