ballerinaballerina-swan-lake

How do I specify ballerina version in ballerina github action?


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?


Solution

  • 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/ballerina-action@2201.3.2
    

    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