forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.01 KB
/
rerun-workflow.yml
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
35
36
37
38
name: Re-run Workflow
on:
workflow_run:
workflows:
- CI
types:
- completed
pull_request_target:
types:
- closed
- labeled
- unlabeled
schedule:
- cron: '0 */3 * * *' # every 3 hours
jobs:
rerun-workflow:
if: >
startsWith(github.repository, 'Homebrew/') &&
(
github.event.label.name == 'ci-requeue' ||
github.event.label.name == 'ci-retry' ||
github.event.label.name == 'ci-skip-appcast' ||
github.event.label.name == 'ci-skip-install' ||
github.event.label.name == 'ci-syntax-only' ||
!github.event.label.name
)
runs-on: ubuntu-latest
steps:
- name: Re-run CI workflow
uses: reitermarkus/rerun-workflow@0590c9e73f88222f090d20b6b9dc5d3d7360ff60
with:
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
once-label: ci-requeue
continuous-label: ci-retry
trigger-labels: ci-skip-appcast,ci-skip-install,ci-syntax-only
workflow: ci.yml