-
Notifications
You must be signed in to change notification settings - Fork 85
32 lines (30 loc) · 1.16 KB
/
all-bake.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
name: Bake all
'on':
workflow_dispatch:
inputs:
cancel-in-progress:
description: Cancel all in-progress bake workflows and do not start any new ones
required: false
type: boolean
default: false
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
schedule:
# run at 01:11 on the 1st day of the month
- cron: '11 1 1 * *'
# A single bake workflow can generate hundreds of jobs once the matrixes are
# expanded, so they are limited the same concurrency group even though
# they are of different architectures and device types.
# Do not cancel in-progress as we are expecting multiple bake workflows listening
# for this event and we don't want them to cancel each other.
concurrency:
group: bake
cancel-in-progress: ${{ inputs.cancel-in-progress == true }}
# Downstream bake workflows are listening for 'Bake all' workflow_run completed events but
# they will be skipped if the condition github.event.workflow_run.conclusion != 'success'.
jobs:
do-success:
name: Return success
runs-on: ubuntu-latest
if: ${{ inputs.cancel-in-progress != true }}
steps:
- run: exit 0