From cc711a571d9d8bb30532203f2545ab40126cd024 Mon Sep 17 00:00:00 2001 From: adamclarkson Date: Mon, 5 Jan 2026 16:33:49 +0000 Subject: [PATCH 1/2] NPA-6014: Attempt to push to Postman collection --- .github/workflows/push-collection-to-postman.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .github/workflows/push-collection-to-postman.yml diff --git a/.github/workflows/push-collection-to-postman.yml b/.github/workflows/push-collection-to-postman.yml new file mode 100644 index 00000000..e084fdb7 --- /dev/null +++ b/.github/workflows/push-collection-to-postman.yml @@ -0,0 +1,4 @@ +name: push-collection-to-postman.yml +on: + +jobs: From d0529bc7937f4561aacd815c9fd7f1e5eb0c5e1c Mon Sep 17 00:00:00 2001 From: adamclarkson Date: Mon, 5 Jan 2026 16:46:21 +0000 Subject: [PATCH 2/2] NPA-6014: Updated yaml file --- .../workflows/push-collection-to-postman.yml | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-collection-to-postman.yml b/.github/workflows/push-collection-to-postman.yml index e084fdb7..0330251e 100644 --- a/.github/workflows/push-collection-to-postman.yml +++ b/.github/workflows/push-collection-to-postman.yml @@ -1,4 +1,45 @@ -name: push-collection-to-postman.yml +name: Push collection to Postman workspace on: + workflow_dispatch: + inputs: + collection: + type: choice + description: Collection to push + options: + - sandbox + - integration + required: true + default: sandbox + + workflow_call: + inputs: + collection: + type: string + description: Collection to push + required: true jobs: + push-to-postman: + name: Push collection to Postman + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + fetch-depth: 0 + - name: Get collection ID + id: get_collection_id + run: | + if [[ '${{ github.event.inputs.collection }}' == 'sandbox' ]]; then + echo 'collection_id=${{ secrets.POSTMAN_SANDBOX_COLLECTION_ID }}' >> $GITHUB_OUTPUT + else + echo 'collection_id=${{ secrets.POSTMAN_INTEGRATION_COLLECTION_ID }}' >> $GITHUB_OUTPUT + fi + - name: push-to-postman-action + id: process + uses: gcatanese/push-to-postman-action@main + with: + goal: update + postman-key: ${{ secrets.POSTMAN_API_KEY }} + postman-file: '/postman/validated_relationship_service.${{ github.event.inputs.collection }}.postman_collection.json' + collection-id: ${{ steps.get_collection_id.outputs.collectionId }}