Skip to content

Commit 26222fa

Browse files
authored
Merge pull request #57 from hnez/schedule-workflow-dispatch
CI: Run scheduled jobs via workflow_dispatch
2 parents 92e7407 + 0c00fcf commit 26222fa

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/build.yml

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
pull_request: {}
66
# allow rebuilding without a push
77
workflow_dispatch: {}
8-
# pre-build sstate regularly
9-
schedule:
10-
- cron: '30 2 * * *'
118

129
jobs:
1310
build:

.github/workflows/schedule-builds.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Schedule Builds
2+
3+
on:
4+
# allow rebuilding manually
5+
workflow_dispatch:
6+
# pre-build sstate regularly
7+
schedule:
8+
- cron: '30 2 * * *'
9+
10+
jobs:
11+
build:
12+
name: Schedule Builds
13+
runs-on: ubuntu-latest
14+
if: ${{ github.event_name == 'workflow_dispatch' || vars.SCHEDULE_BUILDS }}
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
steps:
18+
- name: Check out the repository
19+
uses: actions/checkout@v4
20+
21+
- name: Trigger master build
22+
run: gh workflow run build --ref master
23+
24+
- name: Trigger scarthgap build
25+
run: gh workflow run build --ref scarthgap
26+
27+
- name: Trigger kirkstone build
28+
run: gh workflow run build --ref kirkstone

0 commit comments

Comments
 (0)