Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution
What part(s) of the article would you like to see updated?
The doc has an example:
name: example-workflow
on: [push]
jobs:
production-deploy:
if: github.repository == 'octo-org/octo-repo-prod'
I spent several hours trying to access env.MY_ENVAR, running into errors, before finally realizing that the env context cannot be accessed until after the job runner has been instantiated (which happens after the if guard has passed).
The doc should be updated to clarify that the env context is not available in the if conditional of a job.
Additional information
No response
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution
What part(s) of the article would you like to see updated?
The doc has an example:
I spent several hours trying to access
env.MY_ENVAR, running into errors, before finally realizing that theenvcontext cannot be accessed until after the job runner has been instantiated (which happens after theifguard has passed).The doc should be updated to clarify that the
envcontext is not available in theifconditional of ajob.Additional information
No response