Skip to content

cssnr/env-json-action

Repository files navigation

Tags Test Quality Gate Status GitHub Release Version GitHub Last Commit Codeberg Last Commit GitHub Top Language GitHub Org Stars Discord

Environment to/from JSON Action

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.

Inputs

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

Outputs

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 }}'

Examples

For now, you can check out the Test job here: .github/workflows/test.yaml

Support

For general help or to request a feature, see:

If you are experiencing an issue/bug or getting unexpected results, you can:

Contributing

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:

For a full list of current projects to support visit: https://cssnr.github.io/

About

Convert Environment File to/from a JSON File

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published