Skip to content

Commit c8af9ee

Browse files
committed
Merge pull request #5 from hey-api/chore/move-to-api
chore: move to api
2 parents 9f5a81d + 488cda5 commit c8af9ee

File tree

10 files changed

+18691
-35772
lines changed

10 files changed

+18691
-35772
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,22 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Upload OpenAPI spec
22-
id: upload-openapi-spec
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Upload JSON OpenAPI spec
26+
id: upload-json-openapi-spec
2327
uses: ./
24-
env:
25-
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
26-
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
2728
with:
29+
dry-run: true
30+
hey-api-token: ${{ secrets.HEY_API_TOKEN }}
2831
path-to-openapi: ./openapi.json
32+
33+
- name: Upload YAML OpenAPI spec
34+
id: upload-yaml-openapi-spec
35+
uses: ./
36+
with:
37+
dry-run: true
38+
hey-api-token: ${{ secrets.HEY_API_TOKEN }}
39+
path-to-openapi: ./openapi.yaml

action.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ branding:
77
color: red
88

99
inputs:
10-
# TOOD: add token support
11-
# hey-api-token:
12-
# description: Hey API service token
13-
# required: true
10+
dry-run:
11+
description: Run action in dry run mode
12+
required: false
13+
hey-api-token:
14+
description: Hey API service token
15+
required: true
1416
path-to-openapi:
1517
description: Input path to your OpenAPI specification file
1618
required: true

0 commit comments

Comments
 (0)