Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muchobien/scoped-env
A Github action to expose scoped secreta as environment variables or output
https://github.com/muchobien/scoped-env
action actions environment-variables github-actions typescript
Last synced: about 1 month ago
JSON representation
A Github action to expose scoped secreta as environment variables or output
- Host: GitHub
- URL: https://github.com/muchobien/scoped-env
- Owner: muchobien
- License: mit
- Created: 2022-08-12T00:21:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T20:07:19.000Z (over 1 year ago)
- Last Synced: 2024-09-30T23:41:16.203Z (about 2 months ago)
- Topics: action, actions, environment-variables, github-actions, typescript
- Language: TypeScript
- Homepage:
- Size: 342 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# "Scoped Env" Action For GitHub Actions
A github action to select correct environments based on scope, e.g. `production` or `staging`.
## Usage
Add the following step to your workflow:
```yaml
- name: 'Select correct scope environment variables'
uses: muchobien/scoped-env@v1
with:
secrets: ${{ toJSON(secrets) }}
scope: PROD
includes: 'FROM_INCLUDES' # optional
exporters: 'env,output' # default, optional
overrides: 'false' # optional, default false (override existing environment variables)
```## License Summary
This code is made available under the MIT license.