Skip to content

Confused by : ${{ env.OPTIONS }} #27126

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

You must be logged in to vote
Drallas:

But ‘writing to a special file’ doesn’t make sense to me; even after reading the linked GitHub Doc.

You only need that if you want to generate a value dynamically while your workflow is running. In that case see Setting an environment variable.

Otherwise you should be able to just use static values like this:

      - uses: technote-space/toc-generator@gh-actions
        with:
          TOC_TITLE: 'your title here'
          # ... other options

In the example you linked it looks like the technote-space/load-config-action creates the environment variables.

Replies: 5 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants