How can I get the actual workflow Job Id for composite jobs? #1976
Unanswered
mverkerk-godaddy
asked this question in
Q&A
Replies: 1 comment
-
@mverkerk-godaddy any update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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