organisation_registration_agency update #140
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: CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install xmllint and dependencies | |
run: sudo apt-get update && sudo apt-get install libxml2-utils libxml2-dev libxslt-dev python3-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 |