From 856decc6c8f9eb4783e927189d0f05fb8db53be6 Mon Sep 17 00:00:00 2001 From: Michael Henderson Date: Wed, 25 Sep 2024 21:11:08 -0700 Subject: [PATCH] use github_env --- .github/workflows/dotnet-build-and-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-build-and-release.yml b/.github/workflows/dotnet-build-and-release.yml index a91af56..f852a0b 100644 --- a/.github/workflows/dotnet-build-and-release.yml +++ b/.github/workflows/dotnet-build-and-release.yml @@ -103,13 +103,13 @@ jobs: $targetFrameworks = $csproj.Project.PropertyGroup.TargetFramework } echo "release_platforms: $targetFrameworks" - echo "release_platforms=$targetFrameworks" >> $GITHUB_OUTPUT + echo "release_platforms=$targetFrameworks" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append - name: Archive Files if: success() && env.CREATE_RELEASE == 'True' shell: pwsh run: | - $platforms = "${{ steps.read_target_frameworks.outputs.release_platforms }}".Split(';') + $platforms = "${{ env.release_platforms }}".Split(';') $outputDir = "${{ github.workspace }}\zip\Keyfactor" md $outputDir foreach ($platform in $platforms) {