From 1a138d00d8f87a9f1d22ee44e30b1fee931cf4f0 Mon Sep 17 00:00:00 2001 From: SlightlyCircuitous <71394296+SlightlyCircuitous@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:15:36 -0500 Subject: [PATCH] Replace set-output with GITHUB_OUTPUT Replaces all instances in echo commands --- .github/workflows/updateversion.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/updateversion.yml b/.github/workflows/updateversion.yml index 01e59c5..30ce2c0 100644 --- a/.github/workflows/updateversion.yml +++ b/.github/workflows/updateversion.yml @@ -51,11 +51,11 @@ jobs: UPSTREAM="$(jq -r ".base.repo.clone_url" "$tmp")" LINK="${{github.event.issue.html_url}}" fi - echo "::set-output name=link::$LINK" - echo "::set-output name=ref::$REF" - echo "::set-output name=page::$REPO_PAGE" - echo "::set-output name=name::$REPO_NAME" - echo "::set-output name=upstream::$UPSTREAM" + echo "link=$LINK" >> $GITHUB_OUTPUT + echo "ref=$REF" >> $GITHUB_OUTPUT + echo "page=$REPO_PAGE" >> $GITHUB_OUTPUT + echo "name=$REPO_NAME" >> $GITHUB_OUTPUT + echo "upstream=$UPSTREAM" >> $GITHUB_OUTPUT - name: Checkout pull request uses: actions/checkout@v4 @@ -79,9 +79,9 @@ jobs: echo "::notice::you can resolve merge conflicts at $LINK/conflicts" exit 2 elif git diff --quiet FETCH_HEAD tokens.xml; then - echo "::set-output name=update::false" + echo "update=false" >> $GITHUB_OUTPUT else - echo "::set-output name=update::true" + echo "update=true" >> $GITHUB_OUTPUT fi - name: Get date @@ -93,8 +93,8 @@ jobs: previous="$(> $GITHUB_OUTPUT + echo "previous=$previous" >> $GITHUB_OUTPUT - name: Check for suffix used when multiple changes happen in a day if: steps.check.outputs.update == 'true'