mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1542] Add support for '${{ inputs.xyz }}' when using the workflow_call event. #777
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#777
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mauritsdebruin on GitHub (Jan 3, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1542
Bug report info
Command used with act
Describe issue
When using workflow_call the
inputsvariable is empty.This functionality does work when using the workflow_dispatch event type.
Apparently the reason that things work for workflow_dispatch is due to this PR: https://github.com/nektos/act/pull/1363
I am aware that full support for reusable workflows isn't available.
However, it would be really useful if we can at least call individual workflows using the workflow_call event, in order to make the testing of individual workflows possible. The behavior added in the PR can probably be replicated for this event type.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
Event JSON file:
{ "inputs": { "dummy": "Hello!" } }@EugenioTesio commented on GitHub (Jan 25, 2023):
The --input is not working on my end as well.
Step to reproduce:
git clone https://github.com/EugenioTesio/hello-world-dart-action.gitact -j hello_world_job --input who-to-greet=Eugenio --container-architecture linux/arm64If you are running on a non M1 chipset machine, you can get rid of
--container-architecture linux/arm64Current output:
I should get Hello Eugenio instead of Mona the Octocat.
@kunaltyagi commented on GitHub (Apr 7, 2023):
Can confirm on linux/x64
Merely changing workflow_call -> workflow_dispatch for testing allows the workflow to continue as expected
@GuessWhoSamFoo commented on GitHub (Apr 27, 2023):
Ran into this and would pick this up if no one else is working on it.