diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00a67d66..3a5bd231 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: # Build Ballerina Project - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack ./asb-ballerina @@ -52,7 +52,7 @@ jobs: # Test Ballerina Project - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: test ./asb-ballerina diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index b622786a..00000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: Daily build - -# Controls when the action will run. -on: - schedule: - - cron: '30 2 * * *' - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Set up Java Environment - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - # Grant execute permission to the gradlew script - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - # Build the project with Gradle - - name: Build with Gradle - env: - packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} - packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} - JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true - run: | - ./gradlew build - - # Build Ballerina Project - - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - pack ./asb-ballerina - env: - JAVA_HOME: /usr/lib/jvm/default-jvm - - # Test Ballerina Project - - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - test ./asb-ballerina - env: - JAVA_HOME: /usr/lib/jvm/default-jvm - CONNECTION_STRING: ${{ secrets.CONNECTION_STRING }} - QUEUE_NAME: ${{ secrets.QUEUE_NAME }} - TOPIC_NAME: ${{ secrets.TOPIC_NAME }} - SUBSCRIPTION_NAME1: ${{ secrets.SUBSCRIPTION_NAME1 }} - SUBSCRIPTION_NAME2: ${{ secrets.SUBSCRIPTION_NAME2 }} - SUBSCRIPTION_NAME3: ${{ secrets.SUBSCRIPTION_NAME3 }} - - # Send notification when build fails - - name: Notify failure - if: ${{ failure() }} - run: | - curl -X POST \ - 'https://api.github.com/repos/ballerina-platform/ballerina-release/dispatches' \ - -H 'Accept: application/vnd.github.v3+json' \ - -H 'Authorization: Bearer ${{ secrets.BALLERINA_BOT_TOKEN }}' \ - --data "{ - \"event_type\": \"notify-build-failure\", - \"client_payload\": { - \"repoName\": \"module-ballerinax-azure-service-bus\" - } - }" diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 3292f631..4c365756 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -39,7 +39,7 @@ jobs: # Build Ballerina Project - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack ./asb-ballerina @@ -48,7 +48,7 @@ jobs: # Test Ballerina Project - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: test ./asb-ballerina diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10873eea..3aa8ed33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: # Build Ballerina Project - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack ./asb-ballerina @@ -56,7 +56,7 @@ jobs: # Push to Ballerina Central - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: push