diff --git a/.github/workflows/build-connector-template.yml b/.github/workflows/build-connector-template.yml index fad1631d..e54df861 100644 --- a/.github/workflows/build-connector-template.yml +++ b/.github/workflows/build-connector-template.yml @@ -70,8 +70,8 @@ jobs: packageUser: ${{ github.actor }} packagePAT: ${{ secrets.GITHUB_TOKEN }} run: | - ./gradlew build -x test ${{ inputs.additional-build-flags }} - ./gradlew test ${{ inputs.additional-test-flags }} + ./gradlew build -x -PbuildUsingDocker="2201.11.0-pre-rc1" test ${{ inputs.additional-build-flags }} + ./gradlew test -PbuildUsingDocker="2201.11.0-pre-rc1" ${{ inputs.additional-test-flags }} - name: Generate Codecov Report uses: codecov/codecov-action@v3 @@ -83,7 +83,7 @@ jobs: packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} publishUser: ${{ secrets.BALLERINA_BOT_USERNAME }} publishPAT: ${{ secrets.BALLERINA_BOT_TOKEN }} - run: ./gradlew publish --no-daemon --scan ${{ inputs.additional-build-flags }} + run: ./gradlew publish --no-daemon --scan -PbuildUsingDocker="2201.11.0-pre-rc1" ${{ inputs.additional-build-flags }} # Send notification when build fails - name: Alert notifier on failure diff --git a/.github/workflows/pr-build-connector-template.yml b/.github/workflows/pr-build-connector-template.yml index e434e5ae..409729fe 100644 --- a/.github/workflows/pr-build-connector-template.yml +++ b/.github/workflows/pr-build-connector-template.yml @@ -36,7 +36,7 @@ jobs: - name: Set Up Ballerina uses: ballerina-platform/setup-ballerina@v1.1.0 with: - version: 2201.11.0-pre-rc1 + version: ${{ env.BAL_VERSION }} - name: Set up JDK 21 uses: actions/setup-java@v3 @@ -53,8 +53,8 @@ jobs: packageUser: ${{ github.actor }} packagePAT: ${{ secrets.GITHUB_TOKEN }} run: | - ./gradlew build -x test ${{ inputs.additional-build-flags }} - ./gradlew test ${{ inputs.additional-test-flags }} + ./gradlew build -x test -PbuildUsingDocker="2201.11.0-pre-rc1" ${{ inputs.additional-build-flags }} + ./gradlew test -PbuildUsingDocker="2201.11.0-pre-rc1" ${{ inputs.additional-test-flags }} - name: Generate Codecov Report uses: codecov/codecov-action@v3