-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
38 lines (35 loc) · 1.11 KB
/
action.yaml
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
32
33
34
35
36
37
38
name: 'Mulesoft Exchange Upload'
description: 'GitHub Action to deploy Assets to MuleSoft Anypoint Exchange'
author: José da Gama
branding:
icon: 'share'
color: 'blue'
inputs:
anypoint-organization-id:
description: Anypoint Organization ID
required: true
anypoint-username:
description: Anypoint Username
required: true
anypoint-password:
description: Anypoint Password
required: true
runs:
using: "composite"
steps:
# Install all dependencies
- name: Install jq
uses: dcarbone/[email protected]
- name: Setup Node.js Environment
uses: actions/[email protected]
- name: Install anypoint-cli-v4 & anypoint-cli-exchange-plugin
shell: bash
run: |
sudo apt-get update
npm install -g anypoint-cli-v4
anypoint-cli-v4 plugins:install anypoint-cli-exchange-plugin
# Run
- name: Deploy Asset to Exchange
id: deploy-asset
shell: bash
run: ${{ github.action_path }}/scripts/deploy2exchange.sh "${{ inputs.anypoint-organization-id }}" "${{ inputs.anypoint-username }}" "${{ inputs.anypoint-password }}"