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: inline expression for deployment environment #339

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

angela-tran
Copy link
Member

@angela-tran angela-tran commented Oct 2, 2023

See the failed workflow run from when I merged #329 into dev.

It turns out that the env context is not available in the places I wanted to use it (concurrency, jobs.<job>.environment), so in this PR, I put the expression back as inline instead of having it be a variable.

See GitHub Actions docs for more on where different contexts are available.

put the expression back as inline values instead of being a variable
@angela-tran angela-tran requested a review from a team as a code owner October 2, 2023 16:22
@angela-tran angela-tran self-assigned this Oct 2, 2023
@angela-tran
Copy link
Member Author

Another problem that came out of trying to define and use env.DEPLOYMENT_ENVIRONMENT is that act for some reason was not able to get past the ! character that was in the variable's expression. The error I was getting seems to be a Go error, and I think is a bug in act. GitHub was fine with defining the variable.

image

(see nektos/act#284 for a past bug that seems similar(?))

Because of this, I wasn't able to make use of act to validate my workflow.

Now that I've in-lined the expression, I do get a successful dry run, so that seems promising.

image

Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

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

Bummer!

@angela-tran angela-tran merged commit ba9af5a into dev Oct 2, 2023
6 checks passed
@angela-tran angela-tran deleted the fix/env-not-in-context branch October 2, 2023 17:57
@angela-tran angela-tran mentioned this pull request Oct 27, 2023
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