Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Run scheduled jobs via workflow_dispatch #57

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
pull_request: {}
# allow rebuilding without a push
workflow_dispatch: {}
# pre-build sstate regularly
schedule:
- cron: '30 2 * * *'

jobs:
build:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/schedule-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Schedule Builds

on:
# allow rebuilding manually
workflow_dispatch:
# pre-build sstate regularly
schedule:
- cron: '30 2 * * *'

jobs:
build:
name: Schedule Builds
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || vars.SCHEDULE_BUILDS }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Trigger master build
run: gh workflow run build --ref master

- name: Trigger scarthgap build
run: gh workflow run build --ref scarthgap

- name: Trigger kirkstone build
run: gh workflow run build --ref kirkstone
Loading