From 7e258fbfc60af5cc2ff4f0b68b15b679051cf0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 12:04:11 +0200 Subject: [PATCH] Replace set-output command with environment variable --- .github/workflows/update_datasets.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 77602a81..3597daf6 100644 --- a/.github/workflows/update_datasets.yml +++ b/.github/workflows/update_datasets.yml @@ -31,11 +31,12 @@ jobs: git diff if [ -n "$(git status -s)" ]; then echo "Changes detected" - echo "::set-output name=changes_detected::true" - fi + echo "changes_detected=true" >> $GITHUB_ENV + else + echo "changes_detected=false" >> $GITHUB_ENV - name: Commit changes - if: steps.git-check.outputs.changes_detected == 'true' + if: env.changes_detected == 'true' run: | git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' @@ -43,7 +44,7 @@ jobs: git commit -m "GitHub Action: Update datasets" - name: Create Pull Request - if: steps.git-check.outputs.changes_detected == 'true' + if: env.changes_detected == 'true' uses: peter-evans/create-pull-request@v4 with: token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}