Skip to content

Commit

Permalink
feat(fdr): publish postman collection
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Sep 10, 2024
1 parent f05cf87 commit cc023d8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/publish-fdr-postman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Postman

on:
workflow_call:
workflow_dispatch:
push:
branches: main

jobs:
publish_fdr_postman:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

- name: 📥 Install
uses: ./.github/actions/install

- name: Install Fern
run: npm install -g fern-api

- name: Publish Fiddle FDR SDK
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}
run: |
fern generate --api fdr --group postman
4 changes: 3 additions & 1 deletion fern/apis/fdr/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ groups:
postman:
generators:
- name: fernapi/fern-postman
version: 0.3.2
version: 0.4.0
output:
location: postman
api-key: ${POSTMAN_API_KEY}
workspace-id: 5579b37c-ab1f-4660-90d1-0409e81d57bc
collection-id: 30404764-47b97d6f-d2af-439c-bcff-5b75e6c0e5b6
config:
collection-name: fdr

navigation:
audiences:
Expand Down

0 comments on commit cc023d8

Please sign in to comment.