Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

setup-wso2-apictl

v1.1

setup-wso2-apictl

terminal

setup-wso2-apictl

Setup WSO2 APICTL for WSO2 APIM/MI usecases

Installation

Copy and paste the following snippet into your .yml file.

              

- name: setup-wso2-apictl

uses: yasassri/setup-wso2-apictl@v1.1

Learn more about this action in yasassri/setup-wso2-apictl

Choose a version

Setup WSO2 APICTL Github Action

WSO2 API Controller (apictl) is a command-line tool providing the capability to move APIs, API Products, and Applications across environments and to perform CI/CD operations. Furthermore, it can perform WSO2 Micro Integrator (WSO2 MI) server specific operations such as monitoring Synapse artifacts and performing MI management/administrative tasks from the command line.

This custom GH action will setup WSO2 APICTL in a Linux environment. Since there are no usecases for setting up on Windows environments, currently only Linux environments are supported.

Inputs

version

Optional The version of the APICTL to setup. Default "4.1.0".

The version will be picked from the Github releases : https://github.com/wso2/product-apim-tooling/releases. Ex: 4.1.0 or v4.1.0

tarball_location

Optional A location to an APICTL Tarball if it needs to be downloaded from custom location. No Default

Example usage

uses: yasassri/setup-wso2-apictl@v1.0
with:
  version: '4.1.0'
uses: yasassri/setup-wso2-apictl@v1.0
with:
  tarball_location: 'https://github.com/wso2/product-apim-tooling/releases/download/v4.1.0/apictl-4.1.0-linux-x64.tar.gz'

Full workflow

name: WSO2_APIM
on: [push, pull_request_target, issues]

jobs:
  wso2:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
    steps:
    - uses: yasassri/setup-wso2-apictl@v1.0
      with:
        version: 'v3.2.5'
    - run: apictl version