From 6a249798bc47093e22629bad343c13a214f8a2bd Mon Sep 17 00:00:00 2001 From: SkNuwanTissera Date: Wed, 2 Feb 2022 16:37:27 +0530 Subject: [PATCH] update ballerina actions version to `2201.0.0` --- .github/workflows/ci.yml | 4 +-- .github/workflows/daily-build.yml | 55 ------------------------------- .github/workflows/release.yml | 4 +-- 3 files changed, 4 insertions(+), 59 deletions(-) delete mode 100644 .github/workflows/daily-build.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9375320..a895f5c 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 ./netsuite - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: test ./netsuite diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index 6ac19d2..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 ./netsuite - - # Test the ballerina project - - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - test ./netsuite - env: - JAVA_HOME: /usr/lib/jvm/default-jvm - NS_BASE_URL: ${{ secrets.BASEURL }} - NS_TOKEN_SECRET: ${{ secrets.TOKENSECRET }} - NS_TOKEN: ${{ secrets.TOKEN }} - NS_CLIENT_ID: ${{ secrets.CONSUMERID }} - NS_CLIENT_SECRET: ${{ secrets.CONSUMERSECRET }} - NS_ACCOUNTID: ${{secrets.ACCOUNTID}} - - # 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-netsuite\" - } - }" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be8dffe..00f9f66 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/@master + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: pack ./netsuite @@ -22,7 +22,7 @@ jobs: NS_CLIENT_SECRET: ${{ secrets.CONSUMERSECRET }} NS_ACCOUNTID: ${{secrets.ACCOUNTID}} - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@2201.0.0 with: args: push