create-an-issue icon indicating copy to clipboard operation
create-an-issue copied to clipboard

Inject env.VAR into code block in issue template?

Open loosebazooka opened this issue 3 years ago • 1 comments

I have an issue template that has something like

Run `./script.sh {{ env.VERSION }}`

and a github action config like:

- uses: JasonEtco/create-an-issue@v2
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    VERSION: potato

but when running the action, env.VERSION is never replaced? Is it not possible to replace values in backtick/code blocks? The generated issue just has the uninjected "Run ./script.sh {{ env.VERSION }}" instead of "Run ./script.sh potato"

loosebazooka avatar Jan 14 '21 22:01 loosebazooka

Which version? I am using this successfully with ENV here: https://github.com/opensearch-project/opensearch-build/pull/531/files#diff-a62ff2d992534310d441210a2a8b31711c7e515c326a770d8b31f54a642d3f46R30

dblock avatar Sep 21 '21 15:09 dblock

Closing due to inactivity - if there's any update on this issue feel free to reopen, but environment variables should work fine.

JasonEtco avatar Oct 10 '22 17:10 JasonEtco