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

mimir-rules-action: set-output is deprecated #4372

Merged
merged 4 commits into from
Mar 7, 2023

Conversation

julienduchesne
Copy link
Member

@julienduchesne julienduchesne commented Mar 3, 2023

See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

set-output will stop working on June 1st and is currently warning

This was tested on our internal workflow

@CLAassistant
Copy link

CLAassistant commented Mar 3, 2023

CLA assistant check
All committers have signed the CLA.

@julienduchesne julienduchesne marked this pull request as ready for review March 3, 2023 23:20
@julienduchesne julienduchesne requested a review from a team as a code owner March 3, 2023 23:20
Summary should use the multiline format: github/docs#21529
@julienduchesne julienduchesne force-pushed the julienduchesne/set-output-is-deprecated branch from a5ac4fd to f005a21 Compare March 6, 2023 17:01
Copy link
Contributor

@charleskorn charleskorn left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @julienduchesne!

SUMMARY=$(echo "${OUTPUT}" | grep Summary)
echo ::set-output name=summary::"${SUMMARY}"
echo 'summary<<ENDOFSUMMARY' >> $GITHUB_OUTPUT
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note to reviewers: I thought we needed the = sign after summary here, but apparently it's not required: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings

Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Thanks for addressing it!

@pracucci pracucci merged commit acc4be5 into main Mar 7, 2023
@pracucci pracucci deleted the julienduchesne/set-output-is-deprecated branch March 7, 2023 08: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.

4 participants