blob: df5d534954d8b2b9a31be1095022492f655e073b (
plain)
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
|
name: repositories
on:
pull_request:
paths:
- 'files/overlays/repositories.xml'
jobs:
validate-content:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install pip dependencies
run: pip install lxml
- name: Check repositories.xml
run: |
BASE_REF=$(git merge-base --fork-point origin/${{ github.base_ref }})
python bin/repositories-checker.py --github <(git show ${BASE_REF}:files/overlays/repositories.xml) files/overlays/repositories.xml
|