How do I specify ballerina version in ballerina github action?

35 views Asked by At

I am currently using ballerina-action GitHub action in my workflow. It seems Ballerina version is hardcoded in the Dockerfile of the GitHub action here. Is there a way to give a specific ballerina version in the action?

1

There are 1 answers

0
LochanaJ On BEST ANSWER

The latest version is hardcoded in the master branch. However, you can use ballerina action with any version you want.

For example,

- name: Ballerina Action
  uses: ballerina-platform/[email protected]

Additionally, if you want to do more flexible work with the 'bal' command or work with different versions, you can use the other GitHub action available here: https://github.com/marketplace/actions/setup-ballerina-language