JasonEtco / create-an-issue

A GitHub Action for creating a new issue from a template file.
MIT License
267 stars 83 forks source link

Inject env.VAR into code block in issue template? #81

Closed loosebazooka closed 1 year ago

loosebazooka commented 3 years ago

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"

dblock commented 3 years ago

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

JasonEtco commented 1 year ago

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