Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chingc/demo-github-actions-env-vars
A quickstart and reference for my future self.
https://github.com/chingc/demo-github-actions-env-vars
demo quickstart reference
Last synced: 3 days ago
JSON representation
A quickstart and reference for my future self.
- Host: GitHub
- URL: https://github.com/chingc/demo-github-actions-env-vars
- Owner: chingc
- License: mit
- Created: 2024-08-09T03:35:35.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T14:34:37.000Z (3 months ago)
- Last Synced: 2024-08-29T16:16:46.237Z (3 months ago)
- Topics: demo, quickstart, reference
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Demo
Environment variables and their scopes work as you'd expect in GitHub Actions.
They're also fairly self-contained, so any changes you make are isolated to the job you're in.
One thing that can cause confusion is the fact that environment variables defined within a step aren't accessible until the next step.
## Overview
- Read env vars
- Write env vars
- Pass env vars
- Modify PATH env var## References
- [GitHub Docs: GitHub Actions](https://docs.github.com/en/actions)
- [GitHub Docs: Setting an environment variable](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable)
- [GitHub Docs: jobs..outputs](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs)
- [GitHub Docs: Adding a system path](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path)