-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add merge scheduler workflow and readme text
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Merge Schedule | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
schedule: | ||
# https://crontab.guru/#0_0_*_*_* run every day at 00:00 | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
merge_schedule: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: gr2m/merge-schedule-action@v2 | ||
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/Los_Angeles" | ||
# 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: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters