Replace deprecated set-output with $GITHUB_OUTPUT in Deploy workflow#412
Merged
BenjaminMichaelis merged 3 commits intomainfrom Mar 17, 2026
Merged
Conversation
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 Mar 17, 2026
set-output with $GITHUB_OUTPUT in Deploy workflow
Contributor
There was a problem hiding this comment.
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-outputwith$GITHUB_OUTPUTin 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub deprecated the
::set-outputworkflow command in October 2022, with support fully removed. TheDeploy.ymlworkflow still used the old syntax.Changes
.github/workflows/Deploy.yml: Replace::set-outputwith the$GITHUB_OUTPUTenvironment file approach (PowerShell syntax, consistent withshell: pwshdefault):✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.