Use workflow dispatch event to trigger scheduled builds of code branches

This commit is contained in:
Philipp Oppermann
2020-08-16 17:55:59 +02:00
parent e80864b64d
commit e159804492

33
.github/workflows/scheduled-builds.yml vendored Normal file
View 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 }}