From 4672ee777af337871d03c1ef8127f95c0435841b Mon Sep 17 00:00:00 2001 From: Justin Searls Date: Mon, 17 Jun 2024 13:16:26 -0400 Subject: [PATCH] address deprecation --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 8419c30..1f23fb3 100644 --- a/action.yml +++ b/action.yml @@ -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'