Skip to content

Commit d18a551

Browse files
Fix functionality, add readme
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent 75794d5 commit d18a551

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
```

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh -l
22

3-
# xmllint $1 --schema $2 --noout
3+
xmllint $1 --schema $2 --noout

0 commit comments

Comments
 (0)