Skip to content

Commit ffde0ef

Browse files
ci: give scheduled image builds more time between executions (edgelesssys#3297)
Signed-off-by: Daniel Weiße <[email protected]>
1 parent 59df2b7 commit ffde0ef

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/build-os-image-scheduled.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
workflow_dispatch:
55
schedule:
66
- cron: "0 21 * * 2" # At 21:00 on Tuesday.
7-
- cron: "10 21 * * 2" # At 21:10 on Tuesday.
87
- cron: "20 21 * * 2" # At 21:20 on Tuesday.
8+
- cron: "40 21 * * 2" # At 21:40 on Tuesday.
99
- cron: "0 21 * * 4" # At 21:00 on Thursday.
10-
- cron: "10 21 * * 4" # At 21:10 on Thursday.
1110
- cron: "20 21 * * 4" # At 21:20 on Thursday.
11+
- cron: "40 21 * * 4" # At 21:40 on Thursday.
1212

1313
jobs:
1414
stream:
@@ -28,10 +28,10 @@ jobs:
2828
"0 21 * * 4" | "0 21 * * 2")
2929
echo "stream=debug" | tee -a "$GITHUB_OUTPUT"
3030
;;
31-
"10 21 * * 4" | "10 21 * * 2")
31+
"20 21 * * 4" | "20 21 * * 2")
3232
echo "stream=console" | tee -a "$GITHUB_OUTPUT"
3333
;;
34-
"20 21 * * 4" | "20 21 * * 2")
34+
"40 21 * * 4" | "40 21 * * 2")
3535
echo "stream=nightly" | tee -a "$GITHUB_OUTPUT"
3636
;;
3737
*)
@@ -54,11 +54,8 @@ jobs:
5454

5555
update-code:
5656
# On nightly stream only.
57-
if: |
58-
github.event_name == 'workflow_dispatch' ||
59-
github.event.schedule == '20 21 * * 4' ||
60-
github.event.schedule == '20 21 * * 2'
61-
needs: build-image
57+
if: needs.stream.outputs.stream == 'nightly'
58+
needs: ["build-image", "stream"]
6259
runs-on: ubuntu-22.04
6360
steps:
6461
- name: Checkout

0 commit comments

Comments
 (0)