Open weibeld opened 4 years ago
You can't currently access the other contexts in the toolkit like you can the github context.
If you need a value from one of those, please add it as an action input and instruct workflow authors to pass it into your action
Ok, thanks. Is it planned to add this? Or is it possible at all?
It's not currently planned, but you can add it as an action input and consume those values that way.
Is it documented anywhere what is actually included in the @action/github
's github.context
var?
I also assumed that it would use the full github
context shown in the documentation: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
GitHub Actions provides various contexts, such as
github
,job
,runner
, which can be accessed from various places in a workflow. Is it possible to access these contexts with this toolkit too?From what I have seen, only a part of the
github
context can be accessed through thegithub.context
object in the@actions/github
package. However, this is not exactly identical to thegithub
context, and also all the other contexts, as listed here, don't seem to be accessible.