Converts data formats interchangeably. The following formats are supported: XML, YAML, JSON, PROPS, Lua.
OS | |
---|---|
Windows | ✅ |
Linux | ✅ |
macOS | ✅ |
The following tools have to be installed for successful work of this GitHub Action: bash.
- 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 }}"
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. |