actionlint icon indicating copy to clipboard operation
actionlint copied to clipboard

`env` context not available for `jobs.<job_id>.if`

Open thecristen opened this issue 2 years ago • 0 comments

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

thecristen avatar Jun 20 '22 19:06 thecristen