fix(Actions): Commit hash of build

This commit is contained in:
Yimura 2022-01-11 14:07:40 +01:00
parent aad7072753
commit 1228194773
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -63,6 +63,10 @@ jobs:
bin/Release/YimMenu.dll bin/Release/YimMenu.dll
bin/Release/sha256.checksum bin/Release/sha256.checksum
- name: Get commit short sha for nightly name
id: short_sha
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
create-release: create-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Create Release name: Create Release
@ -79,15 +83,11 @@ jobs:
echo "::set-output name=build_sha::$(cat sha256.checksum)" echo "::set-output name=build_sha::$(cat sha256.checksum)"
cat sha256.checksum cat sha256.checksum
- name: Get commit short sha for nightly name
id: short_sha
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Nightly Release - name: Nightly Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
name: Nightly [${{ steps.short_sha.outputs.sha_short }}] name: Nightly [${{ needs.build-nightly.steps.short_sha.outputs.sha_short }}]
tag_name: nightly_${{ steps.short_sha.outputs.sha_short }} tag_name: nightly
body: | body: |
**This release has been build by Github Actions** **This release has been build by Github Actions**
[Link to build](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) [Link to build](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})