Skip to content

Create collection (POST) #8

Create collection (POST)

Create collection (POST) #8

# Create new collection on Postman
name: "Create collection (POST)"
on:
workflow_dispatch:
inputs:
file:
description: 'Postman JSON filepath'
required: true
default: 'postman/CheckoutService-v70.json'
workspaceId:
description: 'Postman workspace ID'
required: true
jobs:
generate:
name: "Create Postman Collection"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: push-to-postman-action
id: push-to-postman
uses: gcatanese/push-to-postman-action@main
with:
goal: create
postman-key: ${{ secrets.POSTMAN_API_KEY }}
postman-file: ${{ github.event.inputs.file }}
workspace-id: ${{ github.event.inputs.workspaceId }}