lncm / docker-bitcoind

Flexible multi-arch (amd & amd64) Bitcoin Core Docker image
https://hub.docker.com/r/lncm/bitcoind
MIT License
102 stars 34 forks source link

Figure out a way to set global/job-wide env vars #10

Closed meeDamian closed 5 years ago

meeDamian commented 5 years ago

Currently the options are (they all suck):

  1. Inject variables to workflow files in a script run before each commit
  2. Use jobs.<job>.env
  3. Use step output
  4. Repeat a lot
  5. Use secrets 😅
    • no examples…
    • cons: all occurrences hidden…; nobody knows what's actually happening; doesn't work on forked repos(discussion)
meeDamian commented 5 years ago

Solution has been found here, and it's:

echo ::set-env name=action_state::yellow

Docs: https://help.github.com/en/articles/development-tools-for-github-actions#set-an-environment-variable-set-env Example: https://github.com/meeDamian/github-actions-bugs/blob/3045c70062faedced72ed33357ed2f7f31a4372f/.github/workflows/set-env-var-in-step.yml

I'll close this issue when code is updated.