diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 702e333..ac50b21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28ba042..5ddaf42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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