create-an-issue
create-an-issue copied to clipboard
Inject env.VAR into code block in issue template?
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
"
Which version? I am using this successfully with ENV here: https://github.com/opensearch-project/opensearch-build/pull/531/files#diff-a62ff2d992534310d441210a2a8b31711c7e515c326a770d8b31f54a642d3f46R30
Closing due to inactivity - if there's any update on this issue feel free to reopen, but environment variables should work fine.