blob: d9ac507310bec2d28756d1cce5083c8d9af0a123 (
plain)
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
|
name: Nightly QA
on:
schedule:
# at 1:30 daily
- cron: "30 1 * * *"
jobs:
nightly:
# prevent job to run on public repository sonarsource/sonarqube
if: github.repository == 'sonarsource/sonar-enterprise'
runs-on: ubuntu-latest
name: Trigger the nightly QA build
steps:
- name: Fetch code
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_ORG_TOKEN }}
ref: branch-nightly-build
path: repo
- name: Trigger nightly build
run: |
cd repo/
./private/trigger-nightly-build.sh
- name: Notify failures on Slack
if: failure()
uses: Ilshidur/action-slack@2.0.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
with:
args: "Nightly QA failed, see the logs at https://github.com/SonarSource/sonar-enterprise/actions"
|