From 7143db7cceced90d22dde4182fa6952a784f5722 Mon Sep 17 00:00:00 2001 From: Celyn Walters <3299161+celynw@users.noreply.github.com> Date: Wed, 31 Jan 2024 13:06:35 +0000 Subject: [PATCH] Deprecate `set-output` --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e5b549..43270e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,15 +52,15 @@ jobs: fetch-tags: true - name: Get the version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - name: Extract changelog id: extract_changelog run: | VERSION=${{ steps.get_version.outputs.VERSION }} PREVIOUS_VERSION=$(git tag | sort -rV | sed -n '2p') CHANGELOG=$(awk -v version="$VERSION" '/^## /{p=0} $0 ~ "^## " version{p=1} p' CHANGELOG.md) - echo ::set-output name=CHANGELOG::"$CHANGELOG" - echo ::set-output name=PREVIOUS_VERSION::"$PREVIOUS_VERSION" + echo "CHANGELOG=$CHANGELOG" >> $GITHUB_OUTPUT + echo "PREVIOUS_VERSION=$PREVIOUS_VERSION" >> $GITHUB_OUTPUT - name: Create release id: create_release uses: actions/create-release@v1