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.
- Host: GitHub
- URL: https://github.com/action-pack/valid-xml
- Owner: action-pack
- License: mit
- Created: 2024-01-22T21:40:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T01:36:20.000Z (12 months ago)
- Last Synced: 2025-05-05T02:31:05.127Z (12 months ago)
- Topics: action, github-action, github-actions, xml, xml-validation
- Language: JavaScript
- Homepage:
- Size: 980 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
Valid XML
[](https://github.com/action-pack/valid-xml/)
[](https://github.com/marketplace/actions/valid-xml)
[](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 🌟
[](https://starchart.cc/action-pack/valid-xml)