-
Notifications
You must be signed in to change notification settings - Fork 26
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
Resolve Actions deprecations #1316
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a couple small comments, feel free to ignore, otherwise this seems sensible.
(let [github-output-file (File/createTempFile "github-output" nil) | ||
{:keys [grab-history utils]} (th/mk-utils {"GITHUB_OUTPUT" (.getPath github-output-file)}) | ||
_ (sut/set-output utils "foo" "bar") | ||
_ (is (empty? (grab-history))) | ||
_ (is (= "foo=bar\n" (slurp github-output-file)))])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(let [github-output-file (File/createTempFile "github-output" nil) | |
{:keys [grab-history utils]} (th/mk-utils {"GITHUB_OUTPUT" (.getPath github-output-file)}) | |
_ (sut/set-output utils "foo" "bar") | |
_ (is (empty? (grab-history))) | |
_ (is (= "foo=bar\n" (slurp github-output-file)))])) | |
(let [github-output-file (File/createTempFile "github-output" nil) | |
{:keys [grab-history utils]} (th/mk-utils {"GITHUB_OUTPUT" (.getPath github-output-file)})] | |
(sut/set-output utils "foo" "bar") | |
(is (empty? (grab-history))) | |
(is (= "foo=bar\n" (slurp github-output-file))))) |
Can we pull these out of the body of the let?
(set-output | ||
n | ||
(json/generate-string v {:pretty false}))) | ||
(set-output utils n (json/generate-string v {:pretty false}))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the encode/decode pattern but it doesn't really matter.
(set-output utils n (json/generate-string v {:pretty false}))) | |
(set-output utils n (json/encode v))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx
Related zero88/gh-project-context#45
Related https://github.com/advthreat/iroh/pull/7176
Related https://github.com/advthreat/iroh/issues/7218
set-output is deprecated: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
The gh-project-context Action is upgraded to avoid the deprecated Node 12: zero88/gh-project-context#45
§ QA
No QA is needed.
§ Release Notes
§ Squashed Commits