From 652d6e6141cf8d15940e8f27e70b3e288fb25a7f Mon Sep 17 00:00:00 2001 From: lakshanss Date: Wed, 2 Feb 2022 15:40:58 +0530 Subject: [PATCH] Update ballerina action version to 2201.0.0 --- .github/workflows/ci.yml | 6 ++-- .github/workflows/daily-build.yml | 55 ------------------------------ .github/workflows/pull-request.yml | 6 ++-- .github/workflows/release.yml | 6 ++-- 4 files changed, 9 insertions(+), 64 deletions(-) delete mode 100644 .github/workflows/daily-build.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e58643f..83b8b6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,12 +10,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack ./outlookmail - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: test ./outlookmail @@ -24,4 +24,4 @@ jobs: REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} CLIENT_ID: ${{ secrets.CLIENT_ID }} CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - \ No newline at end of file + diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index 30f9064..0000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,55 +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: - pack ./outlookmail - env: - JAVA_HOME: /usr/lib/jvm/default-jvm - - # Test the ballerina project - - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - test ./outlookmail - env: - JAVA_HOME: /usr/lib/jvm/default-jvm - REFRESH_URL: ${{ secrets.REFRESH_URL }} - REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} - CLIENT_ID: ${{ secrets.CLIENT_ID }} - CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - - # 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-microsoft.outlook.mail\" - } - }" diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 184a084..f22f33d 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -10,12 +10,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack ./outlookmail - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: test ./outlookmail @@ -24,4 +24,4 @@ jobs: REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} CLIENT_ID: ${{ secrets.CLIENT_ID }} CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - \ No newline at end of file + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cfbfead..5d5b072 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@2201.0.0 with: args: pack ./outlookmail @@ -22,7 +22,7 @@ jobs: CLIENT_ID: ${{ secrets.CLIENT_ID }} CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: push @@ -31,4 +31,4 @@ jobs: JAVA_HOME: /usr/lib/jvm/default-jvm BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_ACCESS_TOKEN }} - \ No newline at end of file +