-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (32 loc) · 912 Bytes
/
ci.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
name: ci
on:
workflow_dispatch:
inputs:
version:
description: "The version of the python SDK that you would like to release"
required: true
type: string
jobs:
fern-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Fern
run: npm install -g fern-api
- name: Check Fern API is valid
run: fern check
fern-generate-pr:
needs: fern-check
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
- name: Download Fern
run: npm install -g fern-api
- name: Publish Python SDK PR
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --group python-sdk-staging --version ${{ inputs.version }} --log-level debug