docs icon indicating copy to clipboard operation
docs copied to clipboard

Add callout that some contexts aren't available for use in the `jobs.<job_id>.if` conditional

Open MarkIannucci opened this issue 2 years ago • 2 comments

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif

What part(s) of the article would you like to see updated?

Please add a callout that certain contexts are not available for use in the jobs.<job_id>.if conditional. If you attempt to use them, you get an Unrecognized named-value: '<context>'. error.

Adding links to issues where people on the internet have learned about this the hard way:

  • https://github.com/actions/runner/issues/1985
  • https://github.com/actions/runner/issues/1189

Additional information

No response

MarkIannucci avatar Dec 03 '22 10:12 MarkIannucci

Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

welcome[bot] avatar Dec 03 '22 10:12 welcome[bot]

@MarkIannucci Thanks for opening an issue and linking it to your PR! ✨

cmwilson21 avatar Dec 05 '22 14:12 cmwilson21

This is a necro-post, but I wanted to point out, in case anyone sees this later, that I don't think that PR #22437 addresses issue https://github.com/actions/runner/issues/1189 at all -- to me, it is still completely vague as to whether or not one can refer to variables in env from the job context.

cognitiaclaeves avatar Jan 12 '23 14:01 cognitiaclaeves

@cognitiaclaeves 👋 - Would you mind opening your concern as a new issue? That way I can triage it and make sure someone gets eyes on it for review 👀

cmwilson21 avatar Jan 12 '23 14:01 cmwilson21