Skip to content

Replace deprecated set-output with $GITHUB_OUTPUT in Deploy workflow#412

Merged
BenjaminMichaelis merged 3 commits intomainfrom
copilot/deprecate-save-state-set-output
Mar 17, 2026
Merged

Replace deprecated set-output with $GITHUB_OUTPUT in Deploy workflow#412
BenjaminMichaelis merged 3 commits intomainfrom
copilot/deprecate-save-state-set-output

Conversation

Copy link
Contributor

Copilot AI commented Mar 17, 2026

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):
- echo "::set-output name=TAG_VERSION::$tagVersion"
+ echo "TAG_VERSION=$tagVersion" >> $env:GITHUB_OUTPUT

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits March 17, 2026 00:03
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove save state and set output commands in GitHub Actions Replace deprecated set-output with $GITHUB_OUTPUT in Deploy workflow Mar 17, 2026
Copilot AI requested a review from BenjaminMichaelis March 17, 2026 00:05
@BenjaminMichaelis BenjaminMichaelis marked this pull request as ready for review March 17, 2026 00:13
Copilot AI review requested due to automatic review settings March 17, 2026 00:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the release deploy workflow to use the supported GitHub Actions output mechanism instead of the deprecated ::set-output, aligning the repository’s deployment automation with current GitHub runner behavior.

Changes:

  • Replace deprecated ::set-output with $GITHUB_OUTPUT in the Deploy workflow (PowerShell).
  • Includes a formatting/line-ending–only change in Directory.Packages.props (no package version/content changes).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/Deploy.yml Migrates step output setting from ::set-output to writing TAG_VERSION=... into $GITHUB_OUTPUT.
Directory.Packages.props Formatting/line-ending normalization only; not directly related to the workflow change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +5
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
Comment on lines +63 to 65
echo "TAG_VERSION=$tagVersion" >> $env:GITHUB_OUTPUT
dotnet nuget push IntelliTect.Analyzers.$tagVersion.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
id: tag-version
@BenjaminMichaelis BenjaminMichaelis merged commit a87389d into main Mar 17, 2026
9 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the copilot/deprecate-save-state-set-output branch March 17, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants