3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-22 16:29:32 +01:00

Merge pull request #2 from dtolnay/version

Include version number in release body
This commit is contained in:
David Tolnay 2021-11-17 11:43:39 -08:00 committed by GitHub
commit 5579dcabc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}}