$INPUT_X envvars for you based on the inputs set in your action.yml. If you provide default values in the action.yml and dont explicitly pass in an input in
with, then the
$INPUT_X envvar will get set to the default. If your action is a docker action, it’s built first and then run, and when it’s run, all of these $INPUT_X env vars get passed into the container as options like
The problem: when your action uses a prebuilt image, i.e.
uses: docker://ghcr.io/codfish/docker-action-issue:latest, any inputs that aren’t explicitly sent in
with, those input vars do NOT get passed into the docker container in the run command.
The following screenshot is both run commands. On the left is when your
uses declaration points to a repo location, and GitHub has to build the image themselves. On the right is when you point to a prebuilt image.
Good one (Left): https://github.com/LeafLink/llf-web/pull/869/checks?check_run_id=2347949148#step:5:136
Bad one (Right): https://github.com/LeafLink/llf-web/pull/869/checks?check_run_id=2347949148#step:6:19