-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
34 lines (30 loc) · 1.14 KB
/
cron.yml
File metadata and controls
34 lines (30 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Cron
on:
schedule:
- cron: '0 7 * * *' # daily, 7am
workflow_dispatch:
permissions:
contents: read
jobs:
trigger-ci:
permissions:
contents: read # the push uses a personal-access token so it will trigger workflows, so this permission is read-only
checks: read
name: Trigger cron build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch: [main, beta, release]
steps:
- uses: kategengler/ci-cron@181db7e5bac13d0b55b6f5c4a8567fd20154576b # v1.0.3
with:
branch: ${{ matrix.branch }}
# This must use a personal access token because of a Github Actions
# limitation where it will not trigger workflows from pushes from
# other workflows with the token it provides.
# The PERSONAL_ACCESS secret must be a token with `repo` scope.
# See https://help.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token
personal_token: ${{ secrets.PERSONAL_TOKEN }}
committer_email: 'cron@example.com'
committer_name: 'Ember.js Cron CI'