-
Notifications
You must be signed in to change notification settings - Fork 9
35 lines (29 loc) · 1011 Bytes
/
spec-merge.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
name: Merge async api specification
on:
- push
- pull_request
jobs:
build:
name: Run swagger-merger
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@v4
# install swagger-merger
- name: install swagger-merger
run: npm install -g swagger-merger
# Run swagger-merger
- name: Run swagger-merger
run: |
swagger-merger -i MQTT_for_IO-Link.yaml schemas.yaml examples.yaml -o MQTT_for_IO-Link_merged.yaml
swagger-merger -i JSON_for_IO-Link.yaml schemas.yaml examples.yaml -o JSON_for_IO-Link_merged.yaml
- name: Upload merged MQTT_for_IO-Link YAML file as artifact
uses: actions/upload-artifact@v4
with:
name: mqtt-yaml
path: MQTT_for_IO-Link_merged.yaml
- name: Upload merged JSON_for_IO-Link YAML file as artifact
uses: actions/upload-artifact@v4
with:
name: json-yaml
path: JSON_for_IO-Link_merged.yaml