Skip to content

Commit

Permalink
add id to step
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Henderson committed Sep 25, 2024
1 parent 1ffa7ad commit 3b88024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/dotnet-build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,16 @@ jobs:
- name: Read Target Frameworks
id: read_target_frameworks
shell: pwsh
run: |
[xml]$csproj = Get-Content "${{ inputs.release_project }}"
$targetFrameworks = $csproj.Project.PropertyGroup.TargetFrameworks
if ($targetFrameworks -eq $null) {
$targetFrameworks = $csproj.Project.PropertyGroup.TargetFramework
}
echo "::set-output name=release_platforms::$targetFrameworks"
echo "release_platforms: $targetFrameworks"
echo "{release_platforms}={$targetFrameworks}" >> $GITHUB_OUTPUT
- name: Archive Files
if: success() && env.CREATE_RELEASE == 'True'
Expand Down

0 comments on commit 3b88024

Please sign in to comment.