From 4ae1fa9c04a865b9aa2f28e2cac507b703d5a7fe Mon Sep 17 00:00:00 2001 From: Jesper Terkelsen Date: Tue, 25 Oct 2022 16:49:08 +0200 Subject: [PATCH] fix: use new set-output method Deprecation note: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Ticket: DEVPROD-2099 --- .github/workflows/dependency-tree-update.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependency-tree-update.yml b/.github/workflows/dependency-tree-update.yml index 461e3a1..23f166a 100644 --- a/.github/workflows/dependency-tree-update.yml +++ b/.github/workflows/dependency-tree-update.yml @@ -33,11 +33,11 @@ jobs: run: | RUNS="${{ inputs.runs-on }}" if [[ "${RUNS}" == "self-hosted" ]]; then - echo "::set-output name=runs-on::[\"self-hosted\", \"ts-large-x64-docker-large\"]"; + echo "runs-on=[\"self-hosted\", \"ts-large-x64-docker-large\"]" >> $GITHUB_OUTPUT; elif [[ "${RUNS}" =~ ^ts-.* ]]; then - echo "::set-output name=runs-on::[\"self-hosted\", \"${RUNS}\"]"; + echo "runs-on=[\"self-hosted\", \"${RUNS}\"]" >> $GITHUB_OUTPUT; else - echo "::set-output name=runs-on::[\"${RUNS}\"]"; + echo "runs-on=[\"${RUNS}\"]" >> $GITHUB_OUTPUT; fi build: name: tradeshift/dependency-tree-update @@ -109,12 +109,12 @@ jobs: - run: echo ${{ inputs.path }} > .update-deps - id: hash run: | - echo "::set-output name=suffix::$(echo ${{ hashFiles('.update-deps') }} | head -c7)"; + echo "suffix=$(echo ${{ hashFiles('.update-deps') }} | head -c7)" >> $GITHUB_OUTPUT; rm .update-deps - id: formatPath if: ${{ always() }} run: | - echo "::set-output name=path::$(echo ${{ inputs.path }} | sed 's:/*$::')" + echo "path=$(echo ${{ inputs.path }} | sed 's:/*$::')" >> $GITHUB_OUTPUT; - name: Create Pull Request uses: tradeshift/create-pull-request@v3 with: