-
Notifications
You must be signed in to change notification settings - Fork 70
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
Create patched YML in place #163
Create patched YML in place #163
Conversation
@@ -1,6 +1,25 @@ | |||
name: "Setup Miniconda" | |||
author: Gonzalo Peña-Castellanos (@goanpeca) | |||
description: "Set up Conda package and environment manager with Miniconda." | |||
|
|||
runs: |
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.
just moved these up top so they were more discoverable
src/outputs.ts
Outdated
core.setOutput(constants.OUTPUT_ENV_FILE_PATH, path.resolve(envFile)); | ||
core.setOutput(constants.OUTPUT_ENV_FILE_CONTENT, envContent); | ||
core.setOutput(constants.OUTPUT_ENV_FILE_PATCHED, patched ? "true" : "false"); | ||
core.saveState(constants.OUTPUT_ENV_FILE_PATCHED, patched); |
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.
gah, i didn't know about saveState
... should be using that instead of dynamicOptions
or whatever... though it's all any
s all the way down.
src/setup.ts
Outdated
inputs.cleanPatchedEnvironmentFile === "true" && | ||
core.getState(constants.OUTPUT_ENV_FILE_PATCHED) | ||
) { | ||
await core.group("Cleaning up patched environment-file...", async () => |
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.
some future refactor could make this into a "post" step...
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.
Mind creating an issue to keep this on the top of our heads @bollwyvl ?
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.
raised #165!
Tests are up... I don't know how I lose my bash knowledge on a seeming day-to-day basis... |
gah, didn't add a test for |
Ok, does the |
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.
Thanks for working on this @bollwyvl !
Works like a charm!
Will cut a new release! |
Released 2.1.1 @bollwyvl ! |
Thanks all!
|
References
Changes
setup-miniconda-patched-{environment.yml}
in-place (to restore compatibility withpip: ["-r requirements.txt"]
(Environment file with pip dependency file #162) or other cases, e.g.-e .
(would also break today)environment-file(-content|-was-patched)
outputs about the effectiveenvironment-file
usedclean-patched-environment-file
(defaulttrue
) because I don't like actions leaving junk i don't ask for