-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reusable Workflows - predefined variables load for the called job #2577
Comments
Hey @orizerah, you can pass values from parent to child as described in docs reusable workflow
caller workflow
|
I personally don't consider passing manual values down the road as a solution. The Let's open the API for the workflow jobs. Please, find the value The given problem causes the same issue, as the ticket reporter described. We can't get the But if we have had a way to do so with a nasty boilerplate-styled workflows by searching |
According to docs, GITHUB_JOB represents the Although, the mentioned issue still remains. There's no way to identify the full job name A new Another useful environment, that isn't present for ages already, is |
This partially addresses actions/runner#2577
This partially addresses actions/runner#2577
There's a discussion hanging forever for the same issue https://github.com/orgs/community/discussions/8945 |
I don't consider it completed, and the decision to close it is entirely unclear. It's one of the many examples showing the |
Describe the bug
The environment variables that the runner loads contain information only about the called job and not about the caller.
For example: Assuming we have a workflow with a job
build
, which uses another workflow with a job calledtest
, the job name in GitHub will bebuild / test
, but the value ofGITHUB_JOB
will betest
.This denies me from having access in runtime to data about the job.
To Reproduce
Steps to reproduce the behavior:
Go to a GitHub repository and create 2 workflows:
called.yaml
caller.yaml
Expected behavior
There should be a GITHUB_JOB_ID env with the correct job id
The
GITHUB_JOB
env should include the full name of the actual job.Runner Version and Platform
ubuntu-latest
The text was updated successfully, but these errors were encountered: