-
-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (91 loc) · 2.7 KB
/
ship.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Ship
on:
pull_request:
branches: [main]
types:
[
labeled,
unlabeled,
edited,
closed,
reopened,
synchronize,
review_requested,
review_request_removed,
]
pull_request_review:
types: [submitted, edited, dismissed]
check_run:
type: [created, rerequested, completed]
check_suite:
types: [completed]
workflow_run:
branches-ignore: [main]
workflows: ['Node.js CI', 'CodeQL']
types: [completed]
concurrency:
group: |-
${{
github.event.pull_request.number ||
join(github.event.check_run.pull_requests.*.number, ', ') ||
join(github.event.check_suite.pull_requests.*.number, ', ') ||
join(github.event.workflow_run.pull_requests.*.number, ', ') ||
github.sha ||
github.ref
}}
jobs:
concurrency-group:
name: Concurrency group
runs-on: ubuntu-latest
steps:
- name: Concurrency group
env:
CONCURRENCY_GROUP: |-
${{
github.event.pull_request.number ||
join(github.event.check_run.pull_requests.*.number, ', ') ||
join(github.event.check_suite.pull_requests.*.number, ', ') ||
join(github.event.workflow_run.pull_requests.*.number, ', ') ||
github.sha ||
github.ref
}}
run: |
echo "::notice::Concurrency group is $CONCURRENCY_GROUP"
accept-to-ship:
name: Accept to Ship
if: |-
${{
github.base_ref == 'main' ||
github.event.pull_request.base.ref == 'main' ||
contains(github.event.check_run.pull_requests.*.base.ref, 'main') ||
contains(github.event.check_suite.pull_requests.*.base.ref, 'main') ||
contains(github.event.workflow_run.pull_requests.*.base.ref, 'main')
}}
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- uses: CatChen/accept-to-ship-action@v0.4
with:
merge-method: squash
timeout: 0
pass-to-ship:
name: Pass to Ship
if: |-
${{
github.base_ref == 'main' ||
github.event.pull_request.base.ref == 'main' ||
contains(github.event.check_run.pull_requests.*.base.ref, 'main') ||
contains(github.event.check_suite.pull_requests.*.base.ref, 'main') ||
contains(github.event.workflow_run.pull_requests.*.base.ref, 'main')
}}
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- uses: CatChen/accept-to-ship-action@v0.4
with:
merge-method: squash
timeout: 0
request-zero-accept-zero: true
custom-hashtag: '#pass2ship'