a simple github action that set env vars based of a key. very similar to cfn mapping parameter. Useful for setting env vars that have different values based of what infra environment it is in like test
there is two ways to use it:
github action:
uses: mrllama123/env-mapper@v1
with:
envMapperFile: ./path to file
envMapperKey: key
file:
key:
SOME_ENV: value
...
uses: mrllama123/env-mapper@v1
with:
envMapperString: |
key:
SOME_ENV: value
envMapperKey: key
Install the dependencies
npm install
Run the tests ✔️
npm test
PASS ./index.test.js
✓ throws invalid number (3ms)
✓ wait 500 ms (504ms)
✓ test runs (95ms)
...
package up action for release
npm package
-
make sure you have packaged up the code via the npm command
-
create a github release using for tag use sematic versioning e.g
1.0.0
using this process