-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 1.02 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install xmllint and dependencies
run: sudo apt-get update && sudo apt-get install libxml2-utils libxml2-dev libxslt-dev
- name: wget schema
run: |
wget "https://raw.githubusercontent.com/codeforIATI/IATI-Codelists/version-2.03/codelist.xsd"
wget "https://raw.githubusercontent.com/codeforIATI/IATI-Codelists/version-2.03/xml.xsd"
- name: xml lint
run: xmllint --schema codelist.xsd --noout xml/*
trigger:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Trigger a build on the codelists repo
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: peter-evans/repository-dispatch@v1
with:
repository: codeforIATI/codelists
token: ${{ secrets.TOKEN }}
event-type: build