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

env context not available for jobs.<job_id>.if #155

Closed
thecristen opened this issue Jun 20, 2022 · 0 comments
Closed

env context not available for jobs.<job_id>.if #155

thecristen opened this issue Jun 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@thecristen
Copy link

As the context availability documentation indicates, using env isn't supported for a job's if condition. However this wasn't caught as an error by actionlint. In my case I was using a reusable workflow, so the job looked something like this:

jobs:
  pr:
    if: ${{ env.DO_DEPLOY }}
    uses: ./.github/workflows/use-deploy-ecs.yml
    with:
      # args here
    secrets:
      # blah blah blah and so on
@rhysd rhysd added the enhancement New feature or request label Aug 12, 2022
@rhysd rhysd closed this as completed in 135bfc3 Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants