inject git hash directly

This commit is contained in:
Kilian von Pflugk 2024-09-21 18:42:55 +02:00
parent 002f82d6e6
commit f0527fa888
2 changed files with 6 additions and 2 deletions

View File

@ -48,7 +48,9 @@ jobs:
run: dotnet restore
- 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
run: |

View File

@ -31,7 +31,9 @@ jobs:
run: node update-version.js
- 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
run: dotnet build --configuration Release --no-restore