Skip to content

Commit

Permalink
Use SwaggerHub CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Mar 25, 2024
1 parent 40cc083 commit 7eff1fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/swagger-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Install SwaggerHub CLI
run: 'npm i -g swaggerhub-cli'
- name: Push Swagger API to Swagger Hub
run: 'curl -X POST "https://app.swaggerhub.com/apiproxy/registry/buildingSMART/BCF?isPrivate=false&version=4.0" -H "Authorization: $SwaggerHubApiKey" -H "Content-Type: application/yaml" --data-binary @swagger.yaml'
run: 'swaggerhub api:update buildingSMART/BCF/4.0 -f swagger.yaml'
env:
SwaggerHubApiKey: ${{ secrets.SWAGGER_HUB_API_KEY }}
SWAGGERHUB_API_KEY: ${{ secrets.SWAGGER_HUB_API_KEY }}

0 comments on commit 7eff1fe

Please sign in to comment.