Skip to content

How do I refer to env context in a workflow file? #25759

Answered by jamiet-msm
jamiet-msm asked this question in Actions
Discussion options

You must be logged in to vote

got it, thank you. I have gotten around this by providing the GITHUB_RUN_NUMBER as an output from a previous job:

  github-run-number:
    name: Provide GITHUB_RUN_NUMBER
    outputs:
      github-run-number: ${{ steps.github-run-number.outputs.github-run-number }}
    steps:
      - id: github-run-number
        run: |
          echo "::set-output name=github-run-number::$GITHUB_RUN_NUMBER"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
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
2 participants