Skip to content

Commit

Permalink
use github_env
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Henderson committed Sep 26, 2024
1 parent d328266 commit 856decc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 856decc

Please sign in to comment.