Skip to content
Open
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
29 changes: 29 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# In the first period after creating a new release branch, we often want to
# continue including all changes from `main` into the release branch. This
# workflow automatically creates a PR to merge main into the release branch on a
# set schedule, and it can also be invoked manually.
#
# Later in the release cycle we generally stop this practice to avoid landing
# risky changes. To disable the workflow when ready, follow the steps described
# in https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow

name: Create PR to merge main into release branch

permissions:
contents: read
on:
schedule:
- cron: '0 9 * * MON'
workflow_dispatch:
jobs:
create_merge_pr:
name: Create PR to merge main into release branch
uses: swiftlang/github-workflows/.github/workflows/create_automerge_pr.yml@main
with:
head_branch: main
base_branch: release/6.3
permissions:
contents: write
pull-requests: write
# Ensure that we don't run this on a schedule in a fork
if: (github.event_name == 'schedule' && github.repository == 'swiftlang/swift-testing') || (github.event_name != 'schedule')