Composite action inputs inside a shell script #27088
-
Hello!
and
not working inside a shell script! For example:
entrypoint.sh
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I’ve had that issue, too, unfortunately the bug report is still unresolved:
INPUT_* environment variables are missing in composite actions
[According to the documentation](https://docs.github.com/en/actions/creating-act…ions/metadata-syntax-for-github-actions#inputs) actions should receive their input values as environment variables prefixed with `INPUT_` in addition to the `inputs` context. These environment variables are missing for composite actions. To Reproduce
inputs:
foo:
description: 'Test input'
required: yes
runs:
using: composite
steps:
- run: |
echo "FOO: ${INPUT_FOO}"
shell: bash
steps:
- uses: ./example-action
with:
foo: 'bar'
I have an example action and workflow (the Expected behavior Runner Version and PlatformVersion of your runner?
OS of the machine running the runner? OSX/Windows/Linux/...
Job Log OutputFrom the workflow run linked above:
CreditI became aware of the issue thanks to a post on the Github community forum and tried to reproduce the issue out of curiosity. Use
|
Beta Was this translation helpful? Give feedback.
-
thanks for workaround! 🤩
|
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
I’ve had that issue, too, unfortunately the bug report is still unresolved:
INPUT_* environment variables are missing in composite actions