Skip to content

yaml expression syntax #25557

Answered by Yanjingzhu
dirkhh asked this question in Actions
Discussion options

You must be logged in to vote

Thank you for your suggestion.

If you want to use VERSION environment variable in NAME , I would suggest you use ${{env.VERSION}} instead of $VERSION in step.env. Please check my example:

jobs:

  job1:

    runs-on: ubuntu-latest

    env:

      VERSION: ${{ ‘0.2’ }}

    

    steps:

    - uses: actions/checkout@v1

    - run: echo ‘version’  $VERSION  ‘name’ $NAME

       env:

          NAME: subsurface/mxe-build-container:${{env.VERSION}}.stage1

There is a similar issue for how to use env context:https://github.community/t5/GitHub-Actions/How-to-use-env-context/td-p/38951

I have submitted a suggestion to appropriate engineering team  . Ask them to make it clear and add some examples for usin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants