Skip to content

Action to validate the syntax of XML files.

License

Notifications You must be signed in to change notification settings

action-pack/valid-xml

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

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