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