inject git hash directly
This commit is contained in:
parent
002f82d6e6
commit
f0527fa888
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -48,7 +48,9 @@ jobs:
|
|||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Embed version info
|
- name: Embed version info
|
||||||
run: echo "${{ github.sha }}" > ConfusedPolarBear.Plugin.IntroSkipper/Configuration/version.txt
|
run: |
|
||||||
|
GITHUB_SHA=${{ github.sha }}
|
||||||
|
sed -i "s/string\.Empty/\"$GITHUB_SHA\"/g" ConfusedPolarBear.Plugin.IntroSkipper/Helper/Commit.cs
|
||||||
|
|
||||||
- name: Retrieve commit identification
|
- name: Retrieve commit identification
|
||||||
run: |
|
run: |
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -31,7 +31,9 @@ jobs:
|
|||||||
run: node update-version.js
|
run: node update-version.js
|
||||||
|
|
||||||
- name: Embed version info
|
- name: Embed version info
|
||||||
run: echo "${{ github.sha }}" > ConfusedPolarBear.Plugin.IntroSkipper/Configuration/version.txt
|
run: |
|
||||||
|
GITHUB_SHA=${{ github.sha }}
|
||||||
|
sed -i "s/string\.Empty/\"$GITHUB_SHA\"/g" ConfusedPolarBear.Plugin.IntroSkipper/Helper/Commit.cs
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --configuration Release --no-restore
|
run: dotnet build --configuration Release --no-restore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user