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

Fix for deprecated github actions set-output command #84

Merged

Conversation

GenevieveBuckley
Copy link
Contributor

@GenevieveBuckley GenevieveBuckley commented Nov 22, 2023

The github actions set-output command is deprecated, and we are seeing warnings in our CI jobs that it will be removed soon.

I've followed the guide in this blog post to update our script: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Run echo "::set-output name=matrix::$(nox -s gha_list -- -s tests -v)"
nox > Running session gha_list
nox > Session gha_list was successful.
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/

@GenevieveBuckley
Copy link
Contributor Author

Yay, the warning is gone from here. Now the output shows:

Run echo "matrix=$(nox -s gha_list -- -s tests -v)" >> $GITHUB_OUTPUT
nox > Running session gha_list
nox > Session gha_list was successful.

@smarie
Copy link
Owner

smarie commented Nov 23, 2023

Nice ! Thanks @GenevieveBuckley

@smarie smarie merged commit 0f28700 into smarie:main Nov 23, 2023
13 checks passed
@GenevieveBuckley GenevieveBuckley deleted the github-actions-setoutput-deprecated branch December 4, 2023 23:50
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.

2 participants