forked from SonarSource/sonar-java
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 998 Bytes
/
nightly.yml
File metadata and controls
35 lines (33 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: nightly build
# This workflow is triggered on schedule
on:
schedule:
- cron: '0 1 * * *'
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: Nightly build action
jobs:
nightly_build:
runs-on: ubuntu-latest
name: Run a nightly build
steps:
- name: starts a build
env:
CIRRUS_TOKEN: ${{ secrets.CIRRUS_TOKEN }}
uses: SonarSource/gh-action_nightly_build@master
with:
branch: 'master'
#slack notifications
- name: Notify success on Slack
uses: Ilshidur/action-slack@1.6.2
env:
SLACK_OVERRIDE_MESSAGE: 'Nightly build successful'
with:
args: 'Succeed to build dogfood branch'
- name: Notify failures on Slack
uses: Ilshidur/action-slack@1.6.2
if: failure()
env:
SLACK_OVERRIDE_MESSAGE: 'Nightly build: *failed*, see the logs at https://github.com/SonarSource/sonar-java/actions'
with:
args: 'Fail to build dogfood branch'