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

Revert to using env context for variables #391

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

pkalita-lbl
Copy link
Collaborator

Follow up to #390.

I thought I understood the GitHub workflows environment file thing, but oops not quite. I think those values are only sent to the runners so they can't be used for things like enable=${{ env.IS_PROD_RELEASE }} outside of run in a step. So, back to using a workflow-level env block.

@pkalita-lbl pkalita-lbl changed the title Rever to using env context for variables Revert to using env context for variables Nov 21, 2023
Copy link
Collaborator

@eecavanna eecavanna left a comment

Choose a reason for hiding this comment

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

LGTM!

To me, this approach seems consistent with an example I saw in the GitHub docs earlier:
https://docs.github.com/en/actions/learn-github-actions/expressions#example

@eecavanna eecavanna merged commit f5951d1 into main Nov 21, 2023
@eecavanna eecavanna deleted the issue-357-back-to-env-context branch November 21, 2023 00:04
@eecavanna
Copy link
Collaborator

eecavanna commented Nov 21, 2023

Notes about error messages in the GHA logs:

#1 0.171 fatal: Not a valid object name f5951d1421fe2f29855f30592ede70251e4fc73b^{commit}

https://github.com/microbiomedata/nmdc-runtime/actions/runs/6937291073/job/18871069649#step:7:140

image


#10 0.779   error: subprocess-exited-with-error
...
LookupError: setuptools-scm was unable to detect version for /opt/dagster/lib.

https://github.com/microbiomedata/nmdc-runtime/actions/runs/6937291073/job/18871069649#step:7:1396

image


The errors for fastapi (as opposed to dagster) are analogous.

https://github.com/microbiomedata/nmdc-runtime/actions/runs/6937291073/job/18871069649#step:7:1396

https://github.com/microbiomedata/nmdc-runtime/actions/runs/6937291073/job/18871069451#step:7:1398

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