-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.11 KB
/
merge-schedule.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
name: Merge Schedule
on:
pull_request:
types:
- opened
- edited
- synchronize
schedule:
# https://crontab.guru/every-hour
- cron: '0 * * * *'
jobs:
merge_schedule:
runs-on: ubuntu-latest
steps:
- uses: gr2m/[email protected]
with:
# Merge method to use. Possible values are merge, squash or
# rebase. Default is merge.
merge_method: squash
# Time zone to use. Default is UTC.
time_zone: 'America/New_York'
# Require all pull request statuses to be successful before
# merging. Default is `false`.
require_statuses_success: 'true'
# Label to apply to the pull request if the merge fails. Default is
# `automerge-fail`.
automerge_fail_label: 'merge-schedule-failed'
env:
# Use the GHPAGES_TOKEN so that it is merged in my name.
# That way we allow triggering of the publishing workflow on merge to main.
# This is not allowed if we use the built-in GITHUB_TOKEN.
GITHUB_TOKEN: ${{ secrets.GHPAGES_TOKEN }}