File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ # XML Lint Action
2+
3+ This action validates an xml files with a given xml schema using xmllint.
4+
5+ ## Inputs
6+
7+ ### ` xml-file `
8+
9+ ** Required** The name of the source (.xml) file.
10+
11+ ### ` xml-schema-file `
12+
13+ ** Required** The name of the schema (.xsd) file.
14+
15+ ## Example usage
16+
17+ ``` yml
18+ name : Lint
19+
20+ on : [push]
21+
22+ jobs :
23+ xml-linters :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@master
28+ - name : Download schema
29+ run : wget https://apps.nextcloud.com/schema/apps/info.xsd
30+ - name : Lint info.xml
31+ uses : ChristophWurst/xmllint-action@v1
32+ with :
33+ xml-file : ./appinfo/info.xml
34+ xml-schema-file : ./info.xsd
35+ ` ` `
Original file line number Diff line number Diff line change 11#! /bin/sh -l
22
3- # xmllint $1 --schema $2 --noout
3+ xmllint $1 --schema $2 --noout
You can’t perform that action at this time.
0 commit comments