generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
31 lines (29 loc) · 989 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Publish Assets to Exchange
description: Publish the assets to AnyPoint Exchange
inputs:
org_id:
description: AnyPoint Organization ID or Business Group ID
required: true
connected_app_client_id:
description: Connected App Client ID
required: true
connected_app_client_secret:
description: Connected App Client Secret
required: true
runs:
using: composite
steps:
- name: Install API Catalog CLI
shell: bash
run: npm install -g [email protected]
- name: Publish API docs to Anypoint Exchange
shell: bash
env:
ORG_ID: ${{ inputs.org_id }}
CONNECTED_APP_CLIENT_ID: ${{ inputs.connected_app_client_id }}
CONNECTED_APP_CLIENT_SECRET: ${{ inputs.connected_app_client_secret }}
run: |
api-catalog publish-asset --json -d catalog.yaml \
--organization="$ORG_ID" \
--client_id="$CONNECTED_APP_CLIENT_ID" \
--client_secret="$CONNECTED_APP_CLIENT_SECRET"