How can I get the actual workflow Job Id for composite jobs? #1976
Unanswered
mverkerk-godaddy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm testing a library of github actions that uses composite jobs. When i run a workflow that uses these composite jobs, ACT sets the environment variable
GITHUB_JOB
tocomposite-job
even though the job in the workflow has it's own ID.Here's an example:
./.github/workflows/test.yml
./.github/actions/my-composite/action.yml
When I run this, the (truncated) act output looks like this:
Notice the output is printing
env.GITHUB_JOB: composite-job
- I would expect this to bebuild
instead ofcomposite-job
is there another variable somewhere? what is the implication of setting
GITHUB_JOB
to the actual workflow job-id?I believe the related code is here:
act/pkg/runner/action_composite.go
Line 56 in 7ba9f30
Beta Was this translation helpful? Give feedback.
All reactions