Skip to content

Print variable set in $GITHUB_ENV #26392

Answered by airtower-luna
reikdas asked this question in Actions
Discussion options

You must be logged in to vote

I see the problem there: The $CC --version is part of the same steps the set write CC to GITHUB_ENV. That’s not going to work, you can only use it in later steps. So, remove that command from the “setup compiler” steps, and add one like this after them:

    - name: Check compiler version
      run: '$CC --version'

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants