mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Use workflow dispatch event to trigger scheduled builds of code branches
This commit is contained in:
33
.github/workflows/scheduled-builds.yml
vendored
Normal file
33
.github/workflows/scheduled-builds.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Build code on schedule
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '40 1 * * *' # every day at 1:40
|
||||
|
||||
jobs:
|
||||
trigger-build:
|
||||
name: Trigger Build
|
||||
strategy:
|
||||
matrix:
|
||||
branch: [
|
||||
post-01,
|
||||
post-02,
|
||||
post-03,
|
||||
post-04,
|
||||
post-05,
|
||||
post-06,
|
||||
post-07,
|
||||
post-08,
|
||||
post-09,
|
||||
post-10,
|
||||
post-11,
|
||||
post-12,
|
||||
]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Invoke workflow
|
||||
uses: benc-uk/workflow-dispatch@v1.1
|
||||
with:
|
||||
workflow: Build Code
|
||||
token: ${{ secrets.SCHEDULED_BUILDS_TOKEN }}
|
||||
ref: ${{ matrix.branch }}
|
||||
Reference in New Issue
Block a user