-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Inputs context not available in reusable workflows #2206
Comments
I have a similar issue. I passed a number input to a reusable workflow and it was working well. But, it hasn't been working since 4 hours.
|
I am experiencing the same error. This is when trying to pull a value off of |
This was a regression and the change has been reverted today: /~https://github.com/orgs/community/discussions/36670#discussioncomment-3931316 As of today, I cannot reproduce the same issue with the inputs context. |
Hey @pantelis-karamolegkos, I'll close this issue since this is not reproducible as @ChristopherHX says. If you are still heaving the same issue feel free to reopen it and we will continue with investigation. |
Still getting a similar error message, using:
and running gh from the command line like this: the result is:
@ruvceskistefan FYI |
@ruvceskistefan I am also still seeing this same issue: Have a number input via workflow_dispatch that is being directly passed as an input to a reusable workflow:
|
@galcohen-redislabs @jtmullen I ran into a similar issue, it appears that the type gets lost somewhere in the process and those input values become strings. As a workaround, you should be able to use jobs:
...
with:
my_timeout: ${{ inputs.timeout }} give this a try: jobs:
...
with:
my_timeout: ${{ fromJSON(inputs.timeout) }} # 🙈 |
@ruvceskistefan Please note the last three comments. The problem still exists. |
You have a sightly different problem. This was only about @galcohen-redislabs Maybe just create a new issue (+ GitHub Support request) about And Quote that the official GitHub Actions Linter (vscode extention) allows if GitHub fixes it, the fromjson workaround should just continue to work as before EDIT |
Could anyone please reopen this issue, it is still reproducible |
I get the same problem, for a 'number' input. |
i got it also, for a "number" input. |
I am getting the same error. |
@pantelis-karamolegkos - Do you have the following within workflow_call or workflow_dispatch? I think also you would remove default and required since you are always setting the value using "with" from the calling workflow but I may be wrong.
|
See actions/runner#2206, and more specifically actions/runner#2206 (comment)
See actions/runner#2206, and more specifically actions/runner#2206 (comment)
``` The template is not valid. .github/workflows/new_release.yml (Line: 38, Col: 20): Unexpected value 'false' ``` /~https://github.com/AntaresSimulatorTeam/Antares_Simulator/actions/runs/7357236644 See actions/runner#2206, and more specifically actions/runner#2206 (comment)
Unfortunately it doesn't seem like the fromJSON workaound works anymore. Or at least not in my use-case where this is happening with a boolean value. Either way, this is still very much reproducible as I've just tripped over it. 😉 |
I was able to work around this by using |
Hey, I still have this problem when I try to start a workflow inputs:
build:
description: 'Run build process'
required: true
default: false
type: boolean ....... with:
build: ${{ github.event_name == 'push' || github.event.inputs.build }} Have this |
@psazonparalect Did you try this, as mentioned in #2206 (comment)? with:
build: ${{ github.event_name == 'push' || fromJSON(inputs.build) }} |
Hi @twz123 , I saw this comment in thread and didn't try it |
@psazonparalect As far as I can tell it still works. |
I have try another way like:
or
Still error: Please help me to review this. |
Describe the bug
The inputs context does not seem available in the
with
context of reusable workflowsTo Reproduce
Invoke it as follows
Fails
Expected behavior
The
stg_image_build: ${{ inputs.push_to_stg }}
line should be passing to the reusable workflow a boolean.Runner Version and Platform
GitHub hosted runner
OS of the machine running the runner? OSX/Windows/Linux/...
ubuntu-latest
What's not working?
The text was updated successfully, but these errors were encountered: