diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbba9d2..27c9429 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,11 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@slbeta6 with: args: pack ./ses - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@slbeta6 with: args: test ./ses env: @@ -23,4 +23,4 @@ jobs: SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }} RECEIVER_EMAIL: ${{ secrets.RECEIVER_EMAIL }} EMAIL_IDENTITY: ${{ secrets.EMAIL_IDENTITY }} - \ 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 d54fde1..0000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,54 +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 ./ses - - # Test the ballerina project - - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - test ./ses - env: - ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }} - SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }} - SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }} - RECEIVER_EMAIL: ${{ secrets.RECEIVER_EMAIL }} - EMAIL_IDENTITY: ${{ secrets.EMAIL_IDENTITY }} - - # 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-aws.ses\" - } - }" diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5ac45f9..1367a2d 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@slbeta6 with: args: pack ./ses - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action@slbeta6 with: args: test ./ses diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 252d971..798f5d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,14 +12,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@slbeta6 with: args: pack ./ses env: ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }} SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }} - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@master + uses: ballerina-platform/ballerina-action@slbeta6 with: args: push env: