https://github.com/fabasoad/data-format-converter-action
GitHub action that converts YAML / JSON / XML / PROPS / Lua data formats interchangeably
https://github.com/fabasoad/data-format-converter-action
converter github-action github-actions json props xml yaml
Last synced: 9 months ago
JSON representation
GitHub action that converts YAML / JSON / XML / PROPS / Lua data formats interchangeably
- Host: GitHub
- URL: https://github.com/fabasoad/data-format-converter-action
- Owner: fabasoad
- License: mit
- Created: 2022-10-17T08:17:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-12T15:29:37.000Z (9 months ago)
- Last Synced: 2025-09-12T18:12:33.230Z (9 months ago)
- Topics: converter, github-action, github-actions, json, props, xml, yaml
- Language: Shell
- Homepage:
- Size: 142 KB
- Stars: 17
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Data format converter action
[](https://stand-with-ukraine.pp.ua)





Converts data formats interchangeably. The following formats are supported: [XML](https://www.w3schools.com/xml/),
[YAML](https://yaml.org/), [JSON](https://www.json.org/json-en.html), [PROPS](https://www.ibm.com/docs/en/was/8.5.5?topic=SSEQTP_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/rxml_prop_file_syntax.html),
[Lua](https://github.com/lua/lua).
## Supported OS
| OS | |
|---------|--------------------|
| Windows | :white_check_mark: |
| Linux | :white_check_mark: |
| macOS | :white_check_mark: |
## Prerequisites
The following tools have to be installed for successful work of this GitHub Action:
[bash](https://www.gnu.org/software/bash/).
## Inputs
```yaml
- uses: fabasoad/data-format-converter-action@v1
with:
# (Required) Pattern in glob format that would be used to list the files.
source-pattern: "configs/**"
# (Optional) Data type of the source files. Possible values: json, xml, yaml,
# props, lua. Defaults to the type defined by file extension.
from: "xml"
# (Required) Data type to be converted to. Possible values: json, xml, yaml,
# props, lua.
to: "json"
# (Optional) GitHub token that is used to send requests to GitHub API such
# as downloading asset. Defaults to the token provided by GitHub Actions environment.
github-token: "${{ github.token }}"
```
## Outputs
| Name | Required | Description |
|-------------|----------|-------------------------------------------------------------------------------------------------------------------------------------|
| result-path | Yes | The absolute path to the directory with the converted files inside. The name of each converted file is the same as the source file. |
## Documentation
- [Examples](./docs/Examples.md)
- [FAQ](./docs/FAQ.md)
## Contributions
