The `set-output` command is deprecated and will be disabled soon.

Open
#23 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions
Domain
ci-cd

Research direction

Start with the dotnet/code-analysis@main action referenced in the workflow snippet and locate where the deprecated set-output command is used. Run the shown GitHub Actions configuration with ConsoleApp.csproj and verify that the warning is no longer emitted.

Written by the indexing model from the issue text.

Description

"Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/".
I am receiving the above warning when i use the below stage in my yaml file:
name: Run .NET Code Analysis
uses: dotnet/code-analysis@main
id: code-analysis
with:
project: ConsoleApp.csproj
build-breaking: true
And the above ConsoleApp is just printing a "Hello World" message!!

@mavasani Could you help me with the above issue? Thanks.

Dominant language
JavaScript
Stars
65
Forks
23
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/code-analysis

All issues in dotnet/code-analysis

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.