-
Notifications
You must be signed in to change notification settings - Fork 49
34 lines (26 loc) · 996 Bytes
/
readmeio.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
name: readme.io sync pipeline
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install -g rdme
- name: Validate API Definitions
run: rdme validate personio-personnel-data-api-oa3.yaml
- name: Validate Recruiting API Definitions
run: rdme validate personio-recruiting-api.yaml
- name: Publish API Definitions
run: rdme openapi personio-personnel-data-api-oa3.yaml --id=58cd4a8450a0c12500e89bf8 --key ${{ secrets.README_API_KEY }}
if: ${{ github.ref == 'refs/heads/master' }}
- name: Publish Recruiting API Definitions
run: rdme openapi personio-recruiting-api.yaml --id=609158e7204c7e001baff965 --key ${{ secrets.README_API_KEY }}
if: ${{ github.ref == 'refs/heads/master' }}