{"id":13530760,"url":"https://github.com/fabasoad/yaml-json-xml-converter-action","last_synced_at":"2025-04-01T19:30:37.240Z","repository":{"id":37498327,"uuid":"246778269","full_name":"fabasoad/yaml-json-xml-converter-action","owner":"fabasoad","description":"GitHub action that converts YAML/JSON/XML file formats interchangeably","archived":true,"fork":false,"pushed_at":"2023-06-01T01:17:57.000Z","size":3715,"stargazers_count":28,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T19:40:16.932Z","etag":null,"topics":["github-action","github-actions","json","xml","yaml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabasoad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://en.cryptobadges.io/donate/145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH"],"github":["fabasoad"],"ko_fi":"fabasoad","liberapay":"fabasoad"}},"created_at":"2020-03-12T08:12:13.000Z","updated_at":"2025-01-26T06:34:02.000Z","dependencies_parsed_at":"2024-06-19T01:51:41.724Z","dependency_job_id":"c01c5567-13a2-4655-927a-e3f4fbaa0d5b","html_url":"https://github.com/fabasoad/yaml-json-xml-converter-action","commit_stats":{"total_commits":106,"total_committers":3,"mean_commits":"35.333333333333336","dds":0.4811320754716981,"last_synced_commit":"9d7a6b879cd56ea4aa0c21fa61a2ada2ac60c024"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabasoad%2Fyaml-json-xml-converter-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabasoad%2Fyaml-json-xml-converter-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabasoad%2Fyaml-json-xml-converter-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabasoad%2Fyaml-json-xml-converter-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabasoad","download_url":"https://codeload.github.com/fabasoad/yaml-json-xml-converter-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700035,"owners_count":20819814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-action","github-actions","json","xml","yaml"],"created_at":"2024-08-01T07:00:54.764Z","updated_at":"2025-04-01T19:30:36.774Z","avatar_url":"https://github.com/fabasoad.png","language":"JavaScript","funding_links":["https://en.cryptobadges.io/donate/145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH","https://github.com/sponsors/fabasoad","https://ko-fi.com/fabasoad","https://liberapay.com/fabasoad"],"categories":["Community Resources","JavaScript"],"sub_categories":["Utility"],"readme":"# YAML/JSON/XML action (Deprecated)\n\n\u003e **This GitHub action is deprecated and no longer maintained starting from `2022/10/21`. Please use\n\u003e [Data Format Converter Action](https://github.com/marketplace/actions/data-format-converter-action)\n\u003e instead. It is faster, can be run on any OS and supports much more data formats than this one.**\n\n![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/fabasoad/yaml-json-xml-converter-action?include_prereleases)\n![Unit Tests](https://github.com/fabasoad/yaml-json-xml-converter-action/workflows/Unit%20Tests/badge.svg)\n![Security Tests](https://github.com/fabasoad/yaml-json-xml-converter-action/workflows/Security%20Tests/badge.svg)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/fabasoad/yaml-json-xml-converter-action.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/fabasoad/yaml-json-xml-converter-action/alerts/)\n[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/fabasoad/yaml-json-xml-converter-action.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/fabasoad/yaml-json-xml-converter-action/context:javascript)\n[![Known Vulnerabilities](https://snyk.io/test/github/fabasoad/yaml-json-xml-converter-action/badge.svg)](https://snyk.io/test/github/fabasoad/yaml-json-xml-converter-action)\n[![Maintainability](https://api.codeclimate.com/v1/badges/2e14282fa64af03f16b5/maintainability)](https://codeclimate.com/github/fabasoad/yaml-json-xml-converter-action/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/2e14282fa64af03f16b5/test_coverage)](https://codeclimate.com/github/fabasoad/yaml-json-xml-converter-action/test_coverage)\n\nConverts YAML/JSON/XML file formats interchangeably.\n\n## Inputs\n\n| Name | Required | Description                      | Possible values       |\n|------|----------|----------------------------------|-----------------------|\n| path | Yes      | Path to the file to be converted | _\u0026lt;Path\u0026gt;_        |\n| from | Yes      | Format of a file                 | `json`, `xml`, `yaml` |\n| to   | Yes      | Format of a file as a result     | `json`, `xml`, `yaml` |\n\n## Outputs\n\n| Name | Required | Description                                 |\n|------|----------|---------------------------------------------|\n| data | Yes      | Result in a format defined in `to` argument |\n\n## Example usage\n\n### Prerequisites\n\nLet's imagine we need to transform _yaml_ file into _xml_ format and _json_ file into _yaml_ format.\n\n- `docker-compose.yml` file that will be transformed into _json_ file.\n\n```yaml\n---\nversion: '3.7'\nservices:\n  mongo:\n    image: mongo:4.2.3-bionic\n    environment:\n      MONGO_INITDB_ROOT_USERNAME: root\n      MONGO_INITDB_ROOT_PASSWORD: abc123\n    networks:\n      - test-network\n\nnetworks:\n  test-network:\n    name: test-network\n    driver: bridge\n```\n\n- `person.json` file that will be transformed into _yaml_ file.\n\n```json\n{\n    \"name\": \"John Doe\",\n    \"age\": 32,\n    \"hobbies\": [\"Music\", \"PC Games\"]\n}\n```\n\n### Workflow configuration\n\n```yaml\nname: Convert\n\non: push\n\njobs:\n  converter:\n    name: Run converter\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v1\n      - uses: fabasoad/yaml-json-xml-converter-action@main\n        id: yaml2xml\n        with:\n          path: 'docker-compose.yml'\n          from: 'yaml'\n          to: 'xml'\n      - name: Print yaml2xml result\n        run: echo \"${{ steps.yaml2xml.outputs.data }}\"\n      - uses: fabasoad/yaml-json-xml-converter-action@main\n        id: json2yaml\n        with:\n          path: 'package.json'\n          from: 'json'\n          to: 'yaml'\n      - name: Print json2yaml result\n        run: echo \"${{ steps.json2yaml.outputs.data }}\"\n```\n\n### Result\n\n![Result](screenshot.png)\n\n\u003e _Hint:_ If you define the same format for `from` and `to` parameters you can use this action to read the file :wink:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabasoad%2Fyaml-json-xml-converter-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabasoad%2Fyaml-json-xml-converter-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabasoad%2Fyaml-json-xml-converter-action/lists"}