Skip to content

Data Format Converter Action

Actions
GitHub action that converts YAML / JSON / XML / PROPS / Lua data formats interchangeably
v1.0.0
Latest
Star (17)

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

Data Format Converter Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub action that converts YAML / JSON / XML / PROPS / Lua data formats interchangeably
v1.0.0
Latest

Data Format Converter Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.