An open API service indexing awesome lists of open source software.

https://github.com/action-pack/valid-xml

Action to validate the syntax of XML files.
https://github.com/action-pack/valid-xml

action github-action github-actions xml xml-validation

Last synced: 12 months ago
JSON representation

Action to validate the syntax of XML files.

Awesome Lists containing this project

README

          

Valid XML



[![Build](https://github.com/action-pack/valid-xml/actions/workflows/build.yml/badge.svg)](https://github.com/action-pack/valid-xml/)
[![Version](https://img.shields.io/github/v/tag/action-pack/valid-xml?label=version&sort=semver&color=066da5)](https://github.com/marketplace/actions/valid-xml)
[![Size](https://img.shields.io/github/size/action-pack/valid-xml/dist/index.js?branch=release/v1.07&label=size&color=066da5)](https://github.com/action-pack/valid-xml/)


Action to validate the syntax of XML files.

## Usage 🚀

```yaml
uses: action-pack/valid-xml@v1
with:
path: "src/xml/"
file-endings: ".xml, .docx, myfile"
```

## Inputs 📝

### `path`

The path that is scanned. This includes subdirectories. Default `"/"`.

### `file-endings`

A string containing the file endings that are verified to be XML.

Entries need to be separated by "," and whitespaces are trimmed. Capitalization is ignored, so ".xml" will end up scanning "myDocument.XML".

## Outputs 📝

### `result`

A string containing either an error message of the first file that could not be parsed or a success message with the amount of successfully scanned files.

## Stars 🌟
[![Stars](https://starchart.cc/action-pack/valid-xml.svg?variant=adaptive)](https://starchart.cc/action-pack/valid-xml)