Skip to content

crs_channel_code update #147

crs_channel_code update

crs_channel_code update #147

Workflow file for this run

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