From b27786d7a8532ac849227b0ac88270dc4791b468 Mon Sep 17 00:00:00 2001 From: lakshanss Date: Fri, 12 May 2023 09:40:08 +0530 Subject: [PATCH] prepare for 2.4.0 release with bal 2201.4.1 --- .github/workflows/ci.yml | 4 +- .github/workflows/daily-build.yml | 69 ---- .github/workflows/dev-stg-release.yml | 6 +- .github/workflows/pull-request.yml | 2 +- .github/workflows/release.yml | 4 +- .github/workflows/test-fail-notification.yaml | 22 -- onenote/Ballerina.toml | 4 +- onenote/Dependencies.toml | 328 ++++++++++++++++++ onenote/Package.md | 2 +- 9 files changed, 339 insertions(+), 102 deletions(-) delete mode 100644 .github/workflows/daily-build.yml delete mode 100644 .github/workflows/test-fail-notification.yaml create mode 100644 onenote/Dependencies.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fbab70..09a8863 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action/@2201.4.1 with: args: pack ./onenote - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action/@2201.4.1 with: args: test --code-coverage ./onenote diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index 849dba3..0000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,69 +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 ./onenote - - # Test the ballerina project - - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - test --code-coverage ./onenote - env: - REFRESH_URL: ${{ secrets.REFRESH_URL }} - REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} - CLIENT_ID: ${{ secrets.CLIENT_ID }} - CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - - # Read the ballerina test results - - name: Read Ballerina Test Results - id: test_results - run: | - content=`cat ./onenote/target/report/test_results.json` - content="${content//'%'/'%25'}" - content="${content//$'\n'/'%0A'}" - content="${content//$'\r'/'%0D'}" - echo "::set-output name=testResultsJson::$content" - - # Print the code coverage information - - name: Code Coverage - run: | - echo "Covered Code Lines : ${{fromJson(steps.test_results.outputs.testResultsJson).coveredLines}}" - echo "Total Code Lines : $(expr ${{fromJson(steps.test_results.outputs.testResultsJson).missedLines}} + ${{fromJson(steps.test_results.outputs.testResultsJson).coveredLines}})" - echo "Code Coverage Percentage : ${{fromJson(steps.test_results.outputs.testResultsJson).coveragePercentage}}" - - # 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.onenote\" - } - }" diff --git a/.github/workflows/dev-stg-release.yml b/.github/workflows/dev-stg-release.yml index c0b81a7..a37415e 100644 --- a/.github/workflows/dev-stg-release.yml +++ b/.github/workflows/dev-stg-release.yml @@ -19,13 +19,13 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.4.1 with: args: pack ./onenote - name: Push to Staging - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.4.1 if: github.event.inputs.bal_central_environment == 'STAGE' with: args: @@ -35,7 +35,7 @@ jobs: BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_STAGE_ACCESS_TOKEN }} - name: Push to Dev - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.4.1 if: github.event.inputs.bal_central_environment == 'DEV' with: args: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f2d2c56..24462f6 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.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/@2201.4.1 with: args: pack ./onenote diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a0fb89..01f1323 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.4.1 with: args: pack ./onenote @@ -20,7 +20,7 @@ jobs: CLIENT_ID: ${{ secrets.CLIENT_ID }} CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.4.1 with: args: push diff --git a/.github/workflows/test-fail-notification.yaml b/.github/workflows/test-fail-notification.yaml deleted file mode 100644 index fb117fb..0000000 --- a/.github/workflows/test-fail-notification.yaml +++ /dev/null @@ -1,22 +0,0 @@ - -name: Test Fail Notification - -on: [workflow_dispatch] - -jobs: - build: - runs-on: ubuntu-latest - steps: - # Send failure notification - - name: Notify 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-connector-failure\", - \"client_payload\": { - \"repoName\": \"module-ballerinax-microsoft.onenote\" - } - }" diff --git a/onenote/Ballerina.toml b/onenote/Ballerina.toml index 39828b8..435eb52 100644 --- a/onenote/Ballerina.toml +++ b/onenote/Ballerina.toml @@ -1,8 +1,8 @@ [package] -distribution = "2201.3.0" +distribution = "2201.4.1" org= "ballerinax" name= "microsoft.onenote" -version= "2.3.0" +version= "2.4.0" authors = ["Ballerina"] keywords = ["Content & Files/Notes", "Cost/Freemium", "Vendor/Microsoft"] icon = "icon.png" diff --git a/onenote/Dependencies.toml b/onenote/Dependencies.toml new file mode 100644 index 0000000..36e5ab5 --- /dev/null +++ b/onenote/Dependencies.toml @@ -0,0 +1,328 @@ +# AUTO-GENERATED FILE. DO NOT MODIFY. + +# This file is auto-generated by Ballerina for managing dependency versions. +# It should not be modified by hand. + +[ballerina] +dependencies-toml-version = "2" + +[[package]] +org = "ballerina" +name = "auth" +version = "2.6.0" +dependencies = [ + {org = "ballerina", name = "crypto"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.array"}, + {org = "ballerina", name = "lang.string"}, + {org = "ballerina", name = "log"}, + {org = "ballerina", name = "regex"} +] + +[[package]] +org = "ballerina" +name = "cache" +version = "3.4.0" +dependencies = [ + {org = "ballerina", name = "constraint"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "task"}, + {org = "ballerina", name = "time"} +] + +[[package]] +org = "ballerina" +name = "constraint" +version = "1.1.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] + +[[package]] +org = "ballerina" +name = "crypto" +version = "2.3.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "time"} +] + +[[package]] +org = "ballerina" +name = "file" +version = "1.6.0" +dependencies = [ + {org = "ballerina", name = "io"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "log"}, + {org = "ballerina", name = "os"}, + {org = "ballerina", name = "regex"}, + {org = "ballerina", name = "time"} +] + +[[package]] +org = "ballerina" +name = "http" +version = "2.6.1" +dependencies = [ + {org = "ballerina", name = "auth"}, + {org = "ballerina", name = "cache"}, + {org = "ballerina", name = "constraint"}, + {org = "ballerina", name = "crypto"}, + {org = "ballerina", name = "file"}, + {org = "ballerina", name = "io"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "jwt"}, + {org = "ballerina", name = "lang.array"}, + {org = "ballerina", name = "lang.decimal"}, + {org = "ballerina", name = "lang.int"}, + {org = "ballerina", name = "lang.runtime"}, + {org = "ballerina", name = "lang.string"}, + {org = "ballerina", name = "lang.value"}, + {org = "ballerina", name = "log"}, + {org = "ballerina", name = "mime"}, + {org = "ballerina", name = "oauth2"}, + {org = "ballerina", name = "observe"}, + {org = "ballerina", name = "regex"}, + {org = "ballerina", name = "time"}, + {org = "ballerina", name = "url"} +] +modules = [ + {org = "ballerina", packageName = "http", moduleName = "http"} +] + +[[package]] +org = "ballerina" +name = "io" +version = "1.4.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.value"} +] + +[[package]] +org = "ballerina" +name = "jballerina.java" +version = "0.0.0" + +[[package]] +org = "ballerina" +name = "jwt" +version = "2.6.0" +dependencies = [ + {org = "ballerina", name = "cache"}, + {org = "ballerina", name = "crypto"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.int"}, + {org = "ballerina", name = "lang.string"}, + {org = "ballerina", name = "log"}, + {org = "ballerina", name = "regex"}, + {org = "ballerina", name = "time"} +] + +[[package]] +org = "ballerina" +name = "lang.__internal" +version = "0.0.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.object"} +] + +[[package]] +org = "ballerina" +name = "lang.array" +version = "0.0.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.__internal"} +] + +[[package]] +org = "ballerina" +name = "lang.decimal" +version = "0.0.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] + +[[package]] +org = "ballerina" +name = "lang.int" +version = "0.0.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] + +[[package]] +org = "ballerina" +name = "lang.object" +version = "0.0.0" + +[[package]] +org = "ballerina" +name = "lang.regexp" +version = "0.0.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] + +[[package]] +org = "ballerina" +name = "lang.runtime" +version = "0.0.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] +modules = [ + {org = "ballerina", packageName = "lang.runtime", moduleName = "lang.runtime"} +] + +[[package]] +org = "ballerina" +name = "lang.string" +version = "0.0.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.regexp"} +] + +[[package]] +org = "ballerina" +name = "lang.value" +version = "0.0.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] + +[[package]] +org = "ballerina" +name = "log" +version = "2.6.0" +dependencies = [ + {org = "ballerina", name = "io"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.value"}, + {org = "ballerina", name = "observe"} +] +modules = [ + {org = "ballerina", packageName = "log", moduleName = "log"} +] + +[[package]] +org = "ballerina" +name = "mime" +version = "2.6.0" +dependencies = [ + {org = "ballerina", name = "io"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.int"} +] + +[[package]] +org = "ballerina" +name = "oauth2" +version = "2.6.1" +dependencies = [ + {org = "ballerina", name = "cache"}, + {org = "ballerina", name = "crypto"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "log"}, + {org = "ballerina", name = "time"}, + {org = "ballerina", name = "url"} +] + +[[package]] +org = "ballerina" +name = "observe" +version = "1.0.7" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] + +[[package]] +org = "ballerina" +name = "os" +version = "1.6.0" +dependencies = [ + {org = "ballerina", name = "io"}, + {org = "ballerina", name = "jballerina.java"} +] +modules = [ + {org = "ballerina", packageName = "os", moduleName = "os"} +] + +[[package]] +org = "ballerina" +name = "regex" +version = "1.3.2" +dependencies = [ + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.string"} +] + +[[package]] +org = "ballerina" +name = "task" +version = "2.3.2" +dependencies = [ + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "time"} +] + +[[package]] +org = "ballerina" +name = "test" +version = "0.0.0" +scope = "testOnly" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] +modules = [ + {org = "ballerina", packageName = "test", moduleName = "test"} +] + +[[package]] +org = "ballerina" +name = "time" +version = "2.2.4" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] + +[[package]] +org = "ballerina" +name = "url" +version = "2.2.3" +dependencies = [ + {org = "ballerina", name = "jballerina.java"} +] + +[[package]] +org = "ballerinax" +name = "client.config" +version = "1.0.1" +dependencies = [ + {org = "ballerina", name = "http"}, + {org = "ballerina", name = "oauth2"} +] +modules = [ + {org = "ballerinax", packageName = "client.config", moduleName = "client.config"} +] + +[[package]] +org = "ballerinax" +name = "microsoft.onenote" +version = "2.4.0" +dependencies = [ + {org = "ballerina", name = "http"}, + {org = "ballerina", name = "lang.runtime"}, + {org = "ballerina", name = "log"}, + {org = "ballerina", name = "os"}, + {org = "ballerina", name = "test"}, + {org = "ballerinax", name = "client.config"} +] +modules = [ + {org = "ballerinax", packageName = "microsoft.onenote", moduleName = "microsoft.onenote"} +] + diff --git a/onenote/Package.md b/onenote/Package.md index f2ed137..87cf337 100644 --- a/onenote/Package.md +++ b/onenote/Package.md @@ -7,7 +7,7 @@ account using the [OneNote REST API](https://docs.microsoft.com/en-us/graph/api/ | | Version | | ----------------------------|--------------------------------| -| Ballerina Language | Ballerina Swan Lake 2201.3.0 | +| Ballerina Language | Ballerina Swan Lake 2201.4.1 | | Microsoft Graph API | v1.0 | ## Report issues