forked from goatcorp/DalamudPluginsD17
-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (36 loc) · 1007 Bytes
/
validate_manifest.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
33
34
35
36
37
38
39
40
41
42
name: Validate Manifest
on:
pull_request:
paths:
- 'stable/**/*.toml'
- 'testing/**/*.toml'
jobs:
lint-manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v24
with:
separator: ","
files: |
stable/**/*.toml
testing/**/*.toml
- name: Setup Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install python deps
run: python -mpip install pydantic==1.9.1 toml==0.10.2
# for this to work, `,` has to be a banned character for filepaths.
- name: Validate changed manifests
run: |
manifests="${{ steps.changed-files.outputs.all_changed_files }}"
IFS=','
for manifest in $manifests; do
echo "Validating '$manifest'"
python -mpyckager validate "${manifest}"
done