Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simenandre/setup-variables
⚡️ Map variables on Github Actions runs based on input
https://github.com/simenandre/setup-variables
action actions github-actions
Last synced: about 1 month ago
JSON representation
⚡️ Map variables on Github Actions runs based on input
- Host: GitHub
- URL: https://github.com/simenandre/setup-variables
- Owner: simenandre
- License: mit
- Created: 2021-02-08T11:58:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T14:52:26.000Z (4 months ago)
- Last Synced: 2024-09-30T23:42:25.289Z (about 2 months ago)
- Topics: action, actions, github-actions
- Language: TypeScript
- Homepage:
- Size: 505 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Map variable with ease
```yaml
uses: simenandre/setup-variables@v2
id: stack
with:
key: ${{ env.CI_REF_NAME_SLUG }}
map: |
main: prod
staging: staging
dev: dev
'*': dev```
## How does this compare to X?
There are multiple other Github Actions step that tries to solve similar/same
issues.[variable-mapper](https://github.com/marketplace/actions/variable-mapper) for
instance, has mostly the same functionality as this. The schema design is mostly
the same, only difference being that the original uses JSON for mapping.