Daily build #762
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\" | |
} | |
}" |