Created
July 4, 2022 06:18
-
-
Save efossas/8541c6ed649a67ee882f10dbce040226 to your computer and use it in GitHub Desktop.
Github Job Outputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# so many steps to share a value 🙁 | |
# set-output command -> internal key name -> output key name -> needs on next job -> handlebars (not portable) | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
key-name-alt: ${{ steps.set-value.outputs.key-name }} | |
steps: | |
- id: set-value | |
run: echo "::set-output name=key-name::value-goes-here" | |
execute: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- run: export MY_VAR="${{needs.setup.outputs.key-name-alt}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment