diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15fa542..3230827 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: run: | ./gradlew build - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@slbeta3 with: args: build -c env: diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index 123411d..0000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,63 +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: - build -c - env: - WORKING_DIR: ./drive - JAVA_HOME: /usr/lib/jvm/default-jvm - CLIENT_ID: ${{ secrets.CLIENT_ID }} - CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - REFRESH_TOKEN: ${{ secrets.REFRESH_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-googleapis.drive* 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-googleapis.drive* daily build failure \nPlease visit for more information"}' diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 6178c71..ab13e1b 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -21,7 +21,7 @@ jobs: run: | ./gradlew build - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@slbeta3 with: args: build -c --skip-tests ./drive env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a91381..77a4c36 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@slbeta3 with: args: build -c --skip-tests ./drive env: @@ -34,7 +34,7 @@ jobs: CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@slbeta3 with: args: push env: diff --git a/drive/Ballerina.toml b/drive/Ballerina.toml index d7ab104..f5bb198 100644 --- a/drive/Ballerina.toml +++ b/drive/Ballerina.toml @@ -12,7 +12,7 @@ license = ["Apache-2.0"] observabilityIncluded = true [[platform.java11.dependency]] -path = "../java-wrapper/build/libs/java-wrapper-0.1.4-SNAPSHOT.jar" +path = "../java-wrapper/build/libs/java-wrapper-2.0.0.jar" groupId = "org.ballerinalang.googleapis.drive" artifactId = "java-wrapper" -version = "0.1.4-SNAPSHOT" +version = "2.0.0" diff --git a/gradle.properties b/gradle.properties index b37a915..2a9116a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ org.gradle.caching=true group=org.ballerinalang.googleapis.drive -version=0.1.4-SNAPSHOT +version=2.0.0 ballerinaLangVersion=2.0.0-beta.3