Are github.head_ref and github.base_ref null when not a pull request? #13810
Labels
actions
This issue or pull request should be reviewed by the docs actions team
content
This issue or pull request belongs to the Docs Content team
waiting for review
Issue/PR is waiting for a writer's review
Projects
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
What part(s) of the article would you like to see updated?
Stating that the property is not available is ambiguous. If I use
${{ github.base_ref }}in an action, does it returnnull, does it cause an error, or something else if the trigger is not a pull request?Additional information
The same clarification is needed for
github.base_ref.The text was updated successfully, but these errors were encountered: