While investigating how, within github actions, I can diff the "base" version of a specific file in a repository, with the Pull Request's ("head") version of the file ... while investigating this, I found among various sources (for example, github.community, and code examples in the github.com/actions/checkout README file) ... I found that the following context variables are available:
github.ref
github.sha
github.event.pull_request.head.ref
github.event.pull_request.head.sha
github.event.pull_request.base.ref
github.event.pull_request.base.sha
However, other than the first two (github.ref
and github.sha
) I cannot find the other four in any of the github actions documentation.
My question is this: Is there any place where the full list of available context variables is documented?
I have, for example, found this, but it only lists context variables one level down from the github context object. I can't find documentation for the more deeply nested variables noted above. Likely there are other context variables that may be very useful, but I can't seem to find a complete list, rather only those that happen to be mentioned and scatter about in various code examples.