Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ on:
push:
branches: ["main"]

# Rebuild weekly at 03:36 on Tuesday
# helps to flag bugs that appear when dependencies are updated
schedule:
- cron: "36 2 * * *"
- cron: "36 3 * * 2"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/schedule_merge_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow is used for scheduling blog posts to be merged on their publication date.
# To activate the scheduler, include `/schedule <date>` at the end of the PR description, e.g.:
# /schedule 2022-06-08
# More info: https://github.com/gr2m/merge-schedule-action
name: Schedule merge for pull request

on:
# pull request updates trigger the action to check for the presence of
# `/schedule <date>` in the PR description and mark the PR pending if appropriate
pull_request:
types:
- opened
- edited
- synchronize
# daily cron job merges pending PRs on the appropriate date
schedule:
- cron: '36 2 * * *'

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: rebase
# 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: 'automerge-fail'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading