-
Notifications
You must be signed in to change notification settings - Fork 454
38 lines (34 loc) · 1.43 KB
/
build-response-templates.yml
File metadata and controls
38 lines (34 loc) · 1.43 KB
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
name: build response templates
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- develop
jobs:
build-response-templates:
runs-on: ubuntu-latest
steps:
- name: Check out the repository code
uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.11'
architecture: 'x64'
- name: Install Python Dependencies
run: |
pip install pyyaml jsonschema
- name: Running build and validation for response templates
run: |
echo "Generate merged response templates and manifest"
python .github/workflows/response_templates/template_script.py -d ./response_templates -o ./response_templates/merged_response_templates -m
echo "Run validation for response templates"
python .github/workflows/response_templates/validate_response_templates.py -s .github/workflows/response_templates/mcopenapi_public.yml -d response_templates -m response_templates/merged_response_templates/manifest.json --merged-dir response_templates/merged_response_templates
mkdir -p dist/api/response_templates
cp response_templates/merged_response_templates/* dist/api/response_templates/
- name: store_artifacts
uses: actions/upload-artifact@v7
with:
name: response-templates
path: |
dist/api/response_templates