From 91e2064b20343b45cad439c01dce81bd06e62e93 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 17 Nov 2021 11:41:27 -0800 Subject: [PATCH] Include version number in release body --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9aeae93..1b1b8d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,8 @@ jobs: - run: cargo install --force ${{inputs.crate}} --bin ${{inputs.bin || inputs.crate}} - id: which run: echo "::set-output name=which::$(which ${{inputs.bin || inputs.crate}})" + - id: version + run: echo "::set-output name=version::$(cargo install --list | grep -o '^{{inputs.crate}} \([^ :]\)\+')" - run: echo "$PRIVATE_KEY" | gpg --import env: PRIVATE_KEY: ${{secrets.private_key}} @@ -37,3 +39,4 @@ jobs: ${{steps.which.outputs.which}} ${{inputs.bin || inputs.crate}}.sig fail_on_unmatched_files: true + body: ${{steps.version.outputs.version}}