Skip to content

Commit

Permalink
Merge pull request #5 from hey-api/chore/move-to-api
Browse files Browse the repository at this point in the history
chore: move to api
  • Loading branch information
mrlubos committed Apr 14, 2024
2 parents 9f5a81d + 488cda5 commit c8af9ee
Show file tree
Hide file tree
Showing 10 changed files with 18,691 additions and 35,772 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Upload OpenAPI spec
id: upload-openapi-spec
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Upload JSON OpenAPI spec
id: upload-json-openapi-spec
uses: ./
env:
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
with:
dry-run: true
hey-api-token: ${{ secrets.HEY_API_TOKEN }}
path-to-openapi: ./openapi.json

- name: Upload YAML OpenAPI spec
id: upload-yaml-openapi-spec
uses: ./
with:
dry-run: true
hey-api-token: ${{ secrets.HEY_API_TOKEN }}
path-to-openapi: ./openapi.yaml
10 changes: 6 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ branding:
color: red

inputs:
# TOOD: add token support
# hey-api-token:
# description: Hey API service token
# required: true
dry-run:
description: Run action in dry run mode
required: false
hey-api-token:
description: Hey API service token
required: true
path-to-openapi:
description: Input path to your OpenAPI specification file
required: true
Expand Down
Loading

0 comments on commit c8af9ee

Please sign in to comment.