diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f147fb2..e5e68fbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@slbeta3 with: args: build -c ./cosmosdb diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index 9a560fe3..00000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,42 +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 - - # Build the ballerina project - - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - build -c --skip-tests ./cosmosdb - env: - BASE_URL: ${{ secrets.BASE_URL }} - MASTER_OR_RESOURCE_TOKEN: ${{ secrets.MASTER_OR_RESOURCE_TOKEN }} - - # Send notification when build fails - - name: Notify failure - if: ${{ failure() }} - run: | - curl \ - -X POST 'https://chat.googleapis.com/v1/spaces/${{secrets.BALLERINA_CHAT_ID}}/messages?key=${{secrets.BALLERINA_CHAT_KEY}}&token=${{secrets.BALLERINA_CHAT_TOKEN}}' \ - --header 'Content-Type: application/json' \ - -d '{"text": "*module-ballerinax-azure-cosmosdb* daily build failure \nPlease visit for more information"}' - - curl \ - -X POST 'https://chat.googleapis.com/v1/spaces/${{secrets.CONNECTOR_CHAT_ID}}/messages?key=${{secrets.CONNECTOR_CHAT_KEY}}&token=${{secrets.CONNECTOR_CHAT_TOKEN}}' \ - --header 'Content-Type: application/json' \ - -d '{"text": "*module-ballerinax-azure-cosmosdb* daily build failure \nPlease visit for more information"}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b18c0116..e7871c4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@slbeta3 with: args: build -c ./cosmosdb @@ -20,7 +20,7 @@ jobs: BASE_URL: ${{ secrets.BASE_URL }} MASTER_OR_RESOURCE_TOKEN: ${{ secrets.MASTER_OR_RESOURCE_TOKEN }} - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@slbeta3 with: args: push diff --git a/.github/workflows/weekly-build.yml b/.github/workflows/weekly-build.yml deleted file mode 100644 index 6e324d71..00000000 --- a/.github/workflows/weekly-build.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Weekly build - -# Controls when the action will run. -on: - schedule: - - cron: '15 2 * * 1' - -# 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 - - # Build the ballerina project - - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - build -c ./cosmosdb - env: - BASE_URL: ${{ secrets.BASE_URL }} - MASTER_OR_RESOURCE_TOKEN: ${{ secrets.MASTER_OR_RESOURCE_TOKEN }} - - # Send notification when build fails - - name: Notify failure - if: ${{ failure() }} - run: | - curl \ - -X POST 'https://chat.googleapis.com/v1/spaces/${{secrets.BALLERINA_CHAT_ID}}/messages?key=${{secrets.BALLERINA_CHAT_KEY}}&token=${{secrets.BALLERINA_CHAT_TOKEN}}' \ - --header 'Content-Type: application/json' \ - -d '{"text": "*module-ballerinax-azure-cosmosdb* build failure \nPlease visit for more information"}' - curl \ - -X POST 'https://chat.googleapis.com/v1/spaces/${{secrets.CONNECTOR_CHAT_ID}}/messages?key=${{secrets.CONNECTOR_CHAT_KEY}}&token=${{secrets.CONNECTOR_CHAT_TOKEN}}' \ - --header 'Content-Type: application/json' \ - -d '{"text": "*module-ballerinax-azure-cosmosdb* build failure \nPlease visit for more information"}' -