-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) Β· 1.22 KB
/
shared-pr.yaml
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
# This file is @generated by <https://github.com/liblaf/copier-shared>.
# DO NOT EDIT!
name: (Shared) PR
on:
schedule:
- cron: "0 0 * * *"
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
merge:
name: Merge
permissions:
pull-requests: write
if: >-
(
github.event_name == 'schedule' &&
github.event.schedule == '0 0 * * 0'
) || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-merge
cancel-in-progress: true
steps:
- name: Merge
uses: liblaf/actions/pr-label@main
with:
add-label: automerge
label: "autorelease: pending"
token: ${{ secrets.PAT || github.token }}
review:
name: Review
permissions:
pull-requests: write
if: >-
(
github.event_name == 'schedule' &&
github.event.schedule == '0 0 * * *'
) || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-review
cancel-in-progress: true
steps:
- name: Review
uses: liblaf/actions/pr-review@main
with:
token: ${{ secrets.PAT || github.token }}