From acbb8b229435a2b6761dda68843a2c85c778f422 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 17 Dec 2022 09:42:22 +0000 Subject: [PATCH] github/submodule-update: Switch to 'environment' style As per --- .github/workflows/submodule-update.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/submodule-update.yml b/.github/workflows/submodule-update.yml index d5f907bd..9def9e0f 100644 --- a/.github/workflows/submodule-update.yml +++ b/.github/workflows/submodule-update.yml @@ -36,21 +36,21 @@ jobs: git status --porcelain if [ -n "${changes}" ]; then - echo '::set-output changes=true' + echo 'changes=true' >> $GITHUB_OUTPUT else - echo '::set-output changes=false' + echo 'changes=false' >> $GITHUB_OUTPUT fi exit 0 - name: Create submodules changes branch - if: ${{ steps.check_for_changes.outputs.changes }} == 'true' + if: steps.check_for_changes.outputs.changes == 'true' run: | git checkout -b $GITHUB_RUN_ID git commit -am "updating submodules" git push --set-upstream origin $GITHUB_RUN_ID - name: Create pull request against target branch - if: ${{ steps.check_for_changes.outputs.changes }} == 'true' + if: steps.check_for_changes.outputs.changes == 'true' uses: actions/github-script@v6 with: github-token: ${{ inputs.github_token }} @@ -65,7 +65,7 @@ jobs: }); - name: Add labels - if: ${{ steps.check_for_changes.outputs.changes }} == 'true' + if: steps.check_for_changes.outputs.changes == 'true' uses: actions/github-script@v6 with: github-token: ${{ inputs.github_token }}