Skip to content

GitHub action that converts YAML / JSON / XML / PROPS / Lua data formats interchangeably

License

Notifications You must be signed in to change notification settings

fabasoad/data-format-converter-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Data format converter action

Stand With Ukraine GitHub release (latest SemVer including pre-releases) functional-tests test-source-pattern linting security

Converts data formats interchangeably. The following formats are supported: XML, YAML, JSON, PROPS, Lua.

Supported OS

OS
Windows
Linux
macOS

Prerequisites

The following tools have to be installed for successful work of this GitHub Action: bash.

Inputs

- 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

Contributions

Alt