From 0e996586c6d9a43d0aed131f6324b902b0248d54 Mon Sep 17 00:00:00 2001 From: Taliesin Sisson Date: Wed, 27 Dec 2023 11:17:00 +0000 Subject: [PATCH] Use new style --- .github/workflows/create-release.yml | 6 +++--- .github/workflows/release.yml | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 4f10bec5..9b7b8198 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -34,9 +34,9 @@ jobs: prerelease_version="$(svu prerelease --tag-mode all-branches --strip-prefix --pre-release prerelease)" release_version="$(svu next --tag-mode all-branches --strip-prefix)" - echo ::set-output name=CURRENT_VERSION::${current_version} - echo ::set-output name=PRERELEASE_VERSION::${prerelease_version} - echo ::set-output name=RELEASE_VERSION::${release_version} + echo "CURRENT_VERSION=${current_version}" >> $GITHUB_OUTPUT + echo "PRERELEASE_VERSION=${prerelease_version}" >> $GITHUB_OUTPUT + echo "RELEASE_VERSION=${release_version}" >> $GITHUB_OUTPUT echo "current version: ${current_version}" echo "prerelease version: ${prerelease_version}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a032275b..57fe6081 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -273,10 +273,10 @@ jobs: current_version="$(svu current --tag-mode current-branch --strip-prefix)" prerelease_version="$(svu prerelease --tag-mode all-branches --strip-prefix --pre-release prerelease)" release_version="$(svu next --tag-mode all-branches --strip-prefix)" - - echo ::set-output name=CURRENT_VERSION::${current_version} - echo ::set-output name=PRERELEASE_VERSION::${prerelease_version} - echo ::set-output name=RELEASE_VERSION::${release_version} + + echo "CURRENT_VERSION=${current_version}" >> $GITHUB_OUTPUT + echo "PRERELEASE_VERSION=${prerelease_version}" >> $GITHUB_OUTPUT + echo "RELEASE_VERSION=${release_version}" >> $GITHUB_OUTPUT echo "current version: ${current_version}" echo "prerelease version: ${prerelease_version}" @@ -338,7 +338,9 @@ jobs: *) ARTIFACT="${GITHUB_REF}";; esac - echo "::set-output name=ARTIFACT::$ARTIFACT-$(date -u +'%Y-%m-%dT%H-%M')" + + ARTIFACT="${ARTIFACT}-$(date -u +'%Y-%m-%dT%H-%M')" + echo "ARTIFACT=${ARTIFACT}" >> $GITHUB_OUTPUT - name: upload snapshot artifact uses: actions/upload-artifact@v3 if: "!(startsWith(github.ref, 'refs/tags/v'))"