Convert Environment File to/from a JSON File. Creates an output with the results and optionally writes to a file.
Note
Please submit a Feature Request for new features or Open an Issue if you find any bugs.
input | required | default | description |
---|---|---|---|
source | Yes | - | Environment or JSON Source File Path |
type | No | json |
Output type [json , env ] * |
dest | No | - | Optional Output File to Write to |
type - By default this converts .env to json. To perform json to .env, use type env
.
- name: 'Parse Environment'
uses: cssnr/env-json-action@master
output | description |
---|---|
result | JSON or Environment Results |
- name: 'Parse Environment'
id: parse
uses: cssnr/env-json-action@master
- name: 'Echo Result'
run: echo '${{ steps.parse.outputs.result }}'
For now, you can check out the Test
job here: .github/workflows/test.yaml
For general help or to request a feature, see:
- Q&A Discussion: https://github.com/cssnr/env-json-action/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/env-json-action/discussions/categories/feature-requests
If you are experiencing an issue/bug or getting unexpected results, you can:
- Report an Issue: https://github.com/cssnr/env-json-action/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide General Feedback: https://cssnr.github.io/feedback/
Currently, the best way to contribute to this project is to star this project on GitHub.
Additionally, you can support other GitHub Actions I have published:
- VirusTotal Action
- Update Version Tags Action
- Update JSON Value Action
- Parse Issue Form Action
- Mirror Repository Action
- Portainer Stack Deploy
- Mozilla Addon Update Action
For a full list of current projects to support visit: https://cssnr.github.io/