When using a Docker action with inputs containing dashes in names, resulting env var names also contain dashes, but afaik these env vars cannot be read in sh / bash. Is it possible to replace ‘-’-s with ‘_’-s in env vars?
I’m using dashes because this seems to be a common convention for action input names.
# action.yml name: 'Sample action' inputs: build-options: description: "Additional options." default: "--compress" registry-url: description: 'Registry URL' default: 'docker.pkg.github.com/etc' runs: using: 'docker' image: 'Dockerfile' entrypoint: '/main.sh'
Generated env vars:
-e INPUT_BUILD-OPTIONS -e INPUT_REGISTRY-URL