Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set-output command is deprecated in GitHub Actions #371

Open
Vladislav0Art opened this issue Oct 4, 2024 · 0 comments
Open

set-output command is deprecated in GitHub Actions #371

Vladislav0Art opened this issue Oct 4, 2024 · 0 comments

Comments

@Vladislav0Art
Copy link
Collaborator

Describe the bug
For the action "Prepare Plugin Artifact", the github action pipeline outpost the following warning:

Run cd /home/runner/work/TestSpark/TestSpark/build/distributions
  cd /home/runner/work/TestSpark/TestSpark/build/distributions
  FILENAME=`ls *.zip`
  unzip "$FILENAME" -d content
  
  echo "::set-output name=filename::${FILENAME:0:-4}"
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  ...
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](https://github.com/JetBrains-Research/TestSpark/actions/runs/11177467993/job/31073016836?pr=362#step:11:10)-11-github-actions-deprecating-save-state-and-set-output-commands/

GitHub suggests to use a new API, information about which can be found here.

To Reproduce
Steps to reproduce the behavior:

  1. Run the github action build;
  2. See the log and you will find the warning.

Expected behavior
No warning should be outputted once we transition to the suggested API.

Screenshots
Screenshot 2024-10-04 at 11 36 27

Solution
Follow the suggestion from the official doc and migrate the the new API:

Screenshot 2024-10-04 at 11 38 15
@Vladislav0Art Vladislav0Art changed the title set-output command deprecated in GitHub Actions set-output command is deprecated in GitHub Actions Oct 4, 2024
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

No branches or pull requests

1 participant