-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathaction.yml
More file actions
38 lines (37 loc) · 1.21 KB
/
action.yml
File metadata and controls
38 lines (37 loc) · 1.21 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: Stainless — Checkout PR ref
description: Git checkout the base or head of a pull request
runs:
using: node20
main: ../dist/checkoutPRRef.js
inputs:
ref:
description: >-
Which ref to checkout. Options: 'base', 'head'.
required: true
oas_path:
description: Path to your OpenAPI spec.
required: true
config_path:
description: >-
Path to your Stainless config. Optional; only provide this if you are
building or maintaining the ground truth Stainless config in your own
repo.
required: false
# We think it's unlikely you'll need to use non-default inputs for these:
base_sha:
description: >-
The base SHA for the pull request. Used to create a base build.
required: false
default: ${{ github.event.pull_request.base.sha }}
head_sha:
description: >-
The head SHA for the pull request. Used to get the OpenAPI spec and
Stainless config for the preview build.
required: false
default: ${{ github.event.pull_request.head.sha }}
log_level:
description: >-
Log verbosity level. Options: 'debug', 'info', 'warn', 'error', 'off'.
Use 'debug' for detailed diagnostic information.
required: false
default: "info"