You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the context of the called sub-workflow contains the following values:
{
"workflow": "Main workflow", <<< should be sub workflow
"event_name": "workflow_dispatch", <<< should be workflow_call
"event": {
"inputs": {
"call-sub-workflow": "true" <<< should be "something": "a_sample_value"
}
},
"workflow": ".github/workflows/main_workflow.yml" <<< should be .github/workflows/sub_workflow.yml
}
Job Log Output
If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.
Runner and Worker's Diagnostic Logs
If applicable, add relevant diagnostic log information. Logs are located in the runner's _diag folder. The runner logs are prefixed with Runner_ and the worker logs are prefixed with Worker_. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.
The text was updated successfully, but these errors were encountered:
When a reusable workflow is triggered by a caller workflow, the github context is always associated with the caller workflow. The called workflow is automatically granted access to github.token and secrets.GITHUB_TOKEN. For more information about the github context, see "Context and expression syntax for GitHub Actions."
Describe the bug
I use a main workflow that is calculating a value. this value is given as input of a sub workflow.
The issue is that the value is not part of the context. i have the original github context from the main workflow not the context with the new input.
Moreover, the event type is not a workflow_call but a workflow_dispatch.
main workflow : https://github.com/vectice/github-actions-issue/blob/main/.github/workflows/main_workflow.yml
sub workflow : https://github.com/vectice/github-actions-issue/blob/main/.github/workflows/sub_workflow.yml
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect a github context with:
workflow_call
with
keyword (iegithub.event.inputs.something
not empty)Runner Version and Platform
Current runner version: 2.285.1
Ubuntu
20.04.3
LTS
Environment: ubuntu-20.04
Version: 20211129.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20211129.1/images/linux/Ubuntu2004-README.md
Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20211129.1
1.0.0.0-master-20211123-1
What's not working?
the context of the called sub-workflow contains the following values:
Job Log Output
If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.
Runner and Worker's Diagnostic Logs
If applicable, add relevant diagnostic log information. Logs are located in the runner's
_diag
folder. The runner logs are prefixed withRunner_
and the worker logs are prefixed withWorker_
. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.The text was updated successfully, but these errors were encountered: