diff --git a/.github/workflows/sort.yml b/.github/workflows/sort.yml index 2741f0c8e24..4d639e019b5 100644 --- a/.github/workflows/sort.yml +++ b/.github/workflows/sort.yml @@ -22,14 +22,14 @@ jobs: - name: Check for changes in source folder id: changed_files run: | - changed_files=$(git diff --name-only HEAD HEAD~1 | grep -E '^source/') - echo "::set-output name=changed_files::$changed_files" + changed_files=$(git diff --name-only HEAD~1 HEAD | grep -E '^source/') + echo "changed_files=$changed_files" >> $GITHUB_ENV - name: Sort CSV files - if: ${{ steps.changed_files.outputs.changed_files }} + if: env.changed_files run: | python tools/sort_lists.py - name: Commit changes - if: ${{ steps.changed_files.outputs.changed_files }} + if: env.changed_files run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action"