GitHub Action
Verify XML Action
v2
Latest version
This action scans a directory and its subdirectories for files with a specified file name ending and parses the file as XML. If it fails, the error message is output.
The path that is scanned. This includes subdirectories. Default "/"
.
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".
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.
uses: actions/verify-xml-action@v1
with:
path: "src/xml/"
file-endings: ".xml, .docx, myfile"