Skip to content

Create PR to merge main into release branch #3

Create PR to merge main into release branch

Create PR to merge main into release branch #3

Workflow file for this run

name: Create PR to merge main into release branch
# In the first period after branching the release branch, we typically want to include many changes from `main` in the release branch. This workflow automatically creates a PR every Monday to merge main into the release branch.
# Later in the release cycle we should stop this practice to avoid landing risky changes by disabling this workflow. To do so, disable the workflow as described in https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow
on:
schedule:
- cron: '0 9 * * MON'
workflow_dispatch:
jobs:
create_merge_pr:

Check failure on line 9 in .github/workflows/automerge.yml

View workflow run for this annotation

GitHub Actions / Create PR to merge main into release branch

Invalid workflow file

The workflow is not valid. .github/workflows/automerge.yml (Line: 9, Col: 3): Error calling workflow 'swiftlang/github-workflows/.github/workflows/create_automerge_pr.yml@main'. The nested job 'create_merge_pr' is requesting 'contents: write, pull-requests: write', but is only allowed 'contents: read, pull-requests: none'.
name: Create PR to merge main into release branch
uses: swiftlang/github-workflows/.github/workflows/create_automerge_pr.yml@main
with:
base_branch: release/6.2
if: (github.event_name == 'schedule' && github.repository == 'swiftlang/swift-syntax') || (github.event_name != 'schedule') # Ensure that we don't run this on a schedule in a fork