From b22ec6dcd98ceb638c9f36f360321d7f3caf86b1 Mon Sep 17 00:00:00 2001 From: Mathew Davies Date: Fri, 26 May 2023 21:00:09 +0000 Subject: [PATCH] ci: remove deprecated functionality ::set-output to be replaced with $GITHUB_OUTPUT Remove TAG as it wasn't used --- .github/workflows/main-rust.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main-rust.yml b/.github/workflows/main-rust.yml index eaac707..ba0729c 100644 --- a/.github/workflows/main-rust.yml +++ b/.github/workflows/main-rust.yml @@ -42,9 +42,7 @@ jobs: - name: Versions id: version - run: | - echo "::set-output name=version::$(cargo metadata --format-version 1 --no-deps | jq .packages[0].version -r | sed 's/^/v/')" - echo "::set-output name=tag::$(git describe --tags)" + run: echo "VERSION=$(cargo metadata --format-version 1 --no-deps | jq .packages[0].version -r | sed 's/^/v/')" >> "$GITHUB_OUTPUT" - name: Calculate SHA512 checksum run: sha512sum target/release/libreddit > libreddit.sha512 @@ -53,8 +51,8 @@ jobs: uses: softprops/action-gh-release@v1 if: github.base_ref != 'master' with: - tag_name: ${{ steps.version.outputs.version }} - name: ${{ steps.version.outputs.version }} - ${{ github.event.head_commit.message }} + tag_name: ${{ steps.version.outputs.VERSION }} + name: ${{ steps.version.outputs.VERSION }} - ${{ github.event.head_commit.message }} draft: true files: | target/release/libreddit