Closed BPodszun closed 8 months ago
GitHub Actions inputs don't execute shell commands. You need to add a run
step right before the Build the Docker image
one and use the output values in build-args
: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
Contributing guidelines
I've found a bug, and:
Description
The 'outputs' doesn't seem to accept any dynamic expression, neither normal environment variables ($foo) nor Github Action expressions (${{ env.foo}})
Expected behaviour
I would expect that either
$foo
or${{ env.foo }}
works in outputs and evaluates to the environment variable's value at runtime.Actual behaviour
The action creates a file that is literally called '$foo' or '${{ env.foo }}' in the filesystem.
Repository URL
No response
Workflow run URL
No response
YAML workflow