From 27a21473282308ef58e323fbcc063d86533ce2d6 Mon Sep 17 00:00:00 2001 From: SkNuwanTissera Date: Wed, 2 Feb 2022 16:24:02 +0530 Subject: [PATCH] update ballerina actions version to `2201.0.0` --- .github/workflows/ci.yml | 4 +- .github/workflows/daily-build.yml | 85 ------------------------------ .github/workflows/pull-request.yml | 4 +- .github/workflows/release.yml | 4 +- 4 files changed, 6 insertions(+), 91 deletions(-) delete mode 100644 .github/workflows/daily-build.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f61f7ed..a71c2e68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: run: | ./gradlew build - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack @@ -35,7 +35,7 @@ jobs: WORKING_DIR: ./gmail JAVA_HOME: /usr/lib/jvm/default-jvm - name: Ballerina Tests - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: test diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index c6144243..00000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,85 +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 the ballerina project - - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - pack - env: - WORKING_DIR: ./gmail - JAVA_HOME: /usr/lib/jvm/default-jvm - - # Test the ballerina project - - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - test - env: - WORKING_DIR: ./gmail - JAVA_HOME: /usr/lib/jvm/default-jvm - JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true - CLIENT_ID: ${{ secrets.CLIENT_ID }} - CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} - REFRESH_URL: ${{ secrets.REFRESH_URL }} - RECIPIENT: ${{ secrets.RECIPIENT }} - SENDER: ${{ secrets.SENDER }} - CC: ${{ secrets.CC }} - ATTACHMENT_PATH: ${{ secrets.ATTACHMENT_PATH }} - ATTACHMENT_CONTENT_TYPE: ${{ secrets.ATTACHMENT_CONTENT_TYPE }} - INLINE_IMAGE_PATH: ${{ secrets.INLINE_IMAGE_PATH }} - INLINE_IMAGE_NAME: ${{ secrets.INLINE_IMAGE_NAME }} - IMAGE_CONTENT_TYPE: ${{ secrets.IMAGE_CONTENT_TYPE }} - - # 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-googleapis.gmail\" - } - }" diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 23127c20..39950378 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -23,7 +23,7 @@ jobs: run: | ./gradlew build - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack @@ -31,7 +31,7 @@ jobs: WORKING_DIR: ./gmail JAVA_HOME: /usr/lib/jvm/default-jvm - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbbd16aa..8b5c349d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: run: | ./gradlew build - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack @@ -46,7 +46,7 @@ jobs: INLINE_IMAGE_NAME: ${{ secrets.INLINE_IMAGE_NAME }} IMAGE_CONTENT_TYPE: ${{ secrets.IMAGE_CONTENT_TYPE }} - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: push