diff --git a/.github/workflows/publish-dotnet-binaries.yml b/.github/workflows/publish-dotnet-binaries.yml index 7505035..f368bba 100644 --- a/.github/workflows/publish-dotnet-binaries.yml +++ b/.github/workflows/publish-dotnet-binaries.yml @@ -16,8 +16,8 @@ jobs: - name: Get commit message run: | - for (/f "delims=" %a) in ('git log -1 --pretty=format^:%s') do set COMMIT_MESSAGE=%a - setx COMMIT_MESSAGE "%COMMIT_MESSAGE%" + $COMMIT_MESSAGE = git log -1 --pretty=format:%s + Write-Host "::set-env name=COMMIT_MESSAGE::$COMMIT_MESSAGE" ::COMMIT_MESSAGE=$(git log -1 --pretty=format:%s) ::echo "::set-env name=COMMIT_MESSAGE::$COMMIT_MESSAGE"