Skip to content

Daily build

Daily build #1189

Workflow file for this run

name: Daily build
# Controls when the action will run.
on:
schedule:
- cron: '30 2 * * *'
jobs:
dailyBuild:
runs-on: ubuntu-latest
container:
image: ballerina/ballerina:nightly
options: --user root
steps:
- uses: actions/checkout@v2
- name: Build with Gradle
env:
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
GRADLE_USER_HOME: ~/.gradle
run: |
./gradlew build -Prelease=false -Premote=true -PbuildAll=true
# 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\": \"openapi-connectors\"
}
}"