-
Notifications
You must be signed in to change notification settings - Fork 113
38 lines (32 loc) · 1.02 KB
/
XmlValidation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Validate-XML
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: korelstar/xmllint-problem-matcher@v1
- name: Setup XMLLint
run: sudo apt update && sudo apt install --no-install-recommends -y libxml2-utils
- name: Validate ModLinks.xml
run: xmllint --noblanks ModLinks.xml --schema Schemas/ModLinks.xml
- name: Validate APILinks
run: xmllint --noblanks ApiLinks.xml --schema Schemas/ApiLinks.xml
verify:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup ModLinksShaVerifier
run: |
wget https://github.com/hk-modding/ModLinksShaVerifier/releases/download/v2/linux.zip
unzip linux.zip
- name: Verify APILinks SHAs
run: ./ModlinksShaVerifier ApiLinks.xml
- name: Verify ModLinks.xml SHAs
run: ./ModlinksShaVerifier ModLinks.xml