fix(Actions): Commit hash of build
This commit is contained in:
parent
aad7072753
commit
1228194773
12
.github/workflows/nightly.yml
vendored
12
.github/workflows/nightly.yml
vendored
@ -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 }})
|
||||||
|
Reference in New Issue
Block a user