Skip to content
bold

GitHub Action

Ballerina Action

1.2.0 Latest version
Use latest version
bold

Ballerina Action

An action to run "ballerina" CLI commands

Installation

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

- name: Ballerina Action
  uses: ballerina-platform/ballerina-action@1.2.0
Learn more about this action in ballerina-platform/ballerina-action
Choose a version

GitHub Action for the Ballerina CLI

The GitHub Action for the Ballerina CLI wraps the ballerina command inside an Action.

Usage

name: Ballerina example

on: [push]

jobs:
  build:
    
    runs-on: ubuntu-latest
    
    steps:
      - name: Checkout
        uses: actions/checkout@v1
    
      - name: Ballerina Build
        uses: ballerina-platform/ballerina-action@master
        with:
          args: 
            build

      - name: Ballerina Push
        uses: ballerina-platform/ballerina-action@master
        with:
          env: 
            BALLERINA_CENTRAL_ACCESS_TOKEN = ${{ secrets.BallerinaToken }}
          args: 
            push 

Environment variables

  • BALLERINA_CENTRAL_ACCESS_TOKEN – Required only for the "push" action to represent the Ballerina Central access token.
  • WORKING_DIR – Required only if we need to change the current working directory of the repository to another relative path.
You can’t perform that action at this time.