-
Notifications
You must be signed in to change notification settings - Fork 207
43 lines (37 loc) · 1.12 KB
/
validate.yaml
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
33
34
35
36
37
38
39
40
41
42
43
name: Run ocp-build-data-validator
on:
pull_request:
branches:
- 'openshift-**'
paths:
- '**.yml'
- 'rpms/**.yml'
- 'images/**.yml'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install validator
run: git clone https://github.com/openshift-eng/art-tools && cd art-tools/ocp-build-data-validator && pip install .
- name: Get all relevant files that have changed
id: changed-files
uses: tj-actions/changed-files@v37
with:
files_yaml: |
config:
- 'streams.yml'
- 'group.yml'
- 'releases.yml'
- 'bug.yml'
- 'rpms/**.yml'
- 'images/**.yml'
- name: Run validator
if: steps.changed-files.outputs.config_any_changed == 'true'
run: validate-ocp-build-data --exclude-vpn ${{ steps.changed-files.outputs.config_all_changed_files }}