Update ModLinks.xml (#1622) #3748
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |