Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move to api #5

Merged
merged 2 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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