-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.05 KB
/
nightly.yml
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
36
37
38
39
40
41
42
name: Nightly check
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
checks:
uses: ./.github/workflows/check.yml
with:
sdf_version: sdf-beta4-dev
branch: ${{ github.ref }}
done:
name: Done
needs:
- checks
runs-on: ubuntu-latest
if: always()
steps:
- name: Dump needs context
env:
CONTEXT: ${{ toJson(needs) }}
run: |
echo -e "\033[33;1;4mDump context\033[0m"
echo -e "$CONTEXT\n"
- name: Report failure on cancellation
if: ${{ contains(needs.*.result, 'cancelled') || cancelled() }}
run: exit 1
- name: Failing test and build
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
- name: Don't allow skipped
if: ${{ contains(needs.*.result, 'skipped') }}
run: exit 1
- name: Successful test and build
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0