`merge-schedule` gh action can't merge to master
See original GitHub issueDue to master
being a protected branch, github actions can’t merge pull requests to it even if the pr is approved. If you attempt to use merge scheduler (#3282), the action will get an error. We should probably go ahead and delete the action if no one has an idea on making it work.

From my research so far, due to security reasons, GitHub doesn’t allow a way for gh actions to merge to protected branches and I can’t find an alternative way for us to safely schedule merges. Does anybody know of a way to schedule merges to protected branches? cc @iterative/websites
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:16 (12 by maintainers)
Top Results From Across the Web
Merge Schedule · Actions · GitHub Marketplace
merge-schedule -action. GitHub Action to merge pull requests on a scheduled day. Usage. Create .github/workflows/merge ...
Read more >Merge Schedule Action | michaelheap.com
Merge Schedule allows you to merge pull requests at a scheduled time. The most common use case that I've seen for this so...
Read more >Perform Github Action when trying to merge branch
What I would suggest as a workaround here is to run your test 1. after the fact on pushes to the master branch,...
Read more >Automatically schedule a git merge using GitHub Actions
Using the action gr2m/merge-schedule-action@v1, I've been able to automate the process. All I needed to do was create a folder called .github\ ...
Read more >What are Github Actions and How Can You Automate Tests ...
The first will be to simply run some automated tests that will prevent a pull request from being merged if it is failing....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@julieg18 done:
Write should be enough if PR is approved by at least 1 person
~Could exclude admins from the merge protection, and use an admin account
GITHUB_TOKEN
in the action?~Could use a bot account
GITHUB_TOKEN
in the action to do the merge?Should work if e.g. giving the bot (@iterative-olivaw) ~admin~ write permissions on this repo.