/valid-xml

Action to validate the syntax of XML files.

Primary LanguageJavaScriptMIT LicenseMIT

Valid XML

Build Version Size

Action to validate the syntax of XML files.

Usage 🚀

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