Fix nightly-hash for PR
This commit is contained in:
parent
e6fbc8591d
commit
2ff6addbe6
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: create version.h
|
- name: create version.h
|
||||||
run: |
|
run: |
|
||||||
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
git_hash=$(git rev-parse --short "${{ github.event.pull_request.head.sha }}")
|
||||||
cat <<EOF > ./source/version.h
|
cat <<EOF > ./source/version.h
|
||||||
#pragma once
|
#pragma once
|
||||||
#define MODULE_VERSION_EXTRA " (nightly-$git_hash)"
|
#define MODULE_VERSION_EXTRA " (nightly-$git_hash)"
|
||||||
|
@ -29,4 +29,4 @@ jobs:
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: binary
|
name: binary
|
||||||
path: "*.wms"
|
path: "*.wms"
|
||||||
|
|
Loading…
Reference in New Issue