Skip to content

Commit a87389d

Browse files
Replace deprecated set-output with $GITHUB_OUTPUT in Deploy workflow (#412)
GitHub deprecated the `::set-output` workflow command in October 2022, with support fully removed. The `Deploy.yml` workflow still used the old syntax. ## Changes - **`.github/workflows/Deploy.yml`**: Replace `::set-output` with the `$GITHUB_OUTPUT` environment file approach (PowerShell syntax, consistent with `shell: pwsh` default): ```diff - echo "::set-output name=TAG_VERSION::$tagVersion" + echo "TAG_VERSION=$tagVersion" >> $env:GITHUB_OUTPUT ``` <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/IntelliTect/CodingGuidelines/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent eb51a24 commit a87389d

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

.github/workflows/Deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ jobs:
6060
- name: Push NuGet
6161
run: |
6262
$tagVersion = "${{ github.ref }}".substring(11)
63-
echo "::set-output name=TAG_VERSION::$tagVersion"
63+
echo "TAG_VERSION=$tagVersion" >> $env:GITHUB_OUTPUT
6464
dotnet nuget push IntelliTect.Analyzers.$tagVersion.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
6565
id: tag-version

Directory.Packages.props

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
<Project>
2-
<PropertyGroup>
3-
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4-
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
5-
</PropertyGroup>
6-
<ItemGroup>
7-
<PackageVersion Include="coverlet.collector" Version="8.0.0" />
8-
<PackageVersion Include="IntelliTect.Analyzers" Version="0.2.0" />
9-
<PackageVersion Include="Microsoft.Build.Framework" Version="18.4.0" />
10-
<PackageVersion Include="Microsoft.Build.Locator" Version="1.11.2" />
11-
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0" />
12-
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.3.0" />
13-
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.3.0" />
14-
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.201" />
15-
<PackageVersion Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="5.3.0" />
16-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
17-
<PackageVersion Include="MSTest.TestAdapter" Version="4.1.0" />
18-
<PackageVersion Include="MSTest.TestFramework" Version="4.1.0" />
19-
<PackageVersion Include="System.CommandLine.DragonFruit" Version="0.4.0-alpha.25320.106" />
20-
<!-- Reference-only packages for test framework namespace resolution in analyzer tests -->
21-
<PackageVersion Include="xunit.v3.core" Version="3.2.2" />
22-
<PackageVersion Include="NUnit" Version="4.5.1" />
23-
<PackageVersion Include="TUnit.Core" Version="1.19.57" />
24-
</ItemGroup>
25-
</Project>
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<PackageVersion Include="coverlet.collector" Version="8.0.0" />
8+
<PackageVersion Include="IntelliTect.Analyzers" Version="0.2.0" />
9+
<PackageVersion Include="Microsoft.Build.Framework" Version="18.4.0" />
10+
<PackageVersion Include="Microsoft.Build.Locator" Version="1.11.2" />
11+
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0" />
12+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.3.0" />
13+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.3.0" />
14+
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.201" />
15+
<PackageVersion Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="5.3.0" />
16+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
17+
<PackageVersion Include="MSTest.TestAdapter" Version="4.1.0" />
18+
<PackageVersion Include="MSTest.TestFramework" Version="4.1.0" />
19+
<PackageVersion Include="System.CommandLine.DragonFruit" Version="0.4.0-alpha.25320.106" />
20+
<!-- Reference-only packages for test framework namespace resolution in analyzer tests -->
21+
<PackageVersion Include="xunit.v3.core" Version="3.2.2" />
22+
<PackageVersion Include="NUnit" Version="4.5.1" />
23+
<PackageVersion Include="TUnit.Core" Version="1.19.57" />
24+
</ItemGroup>
25+
</Project>

0 commit comments

Comments
 (0)