Add GitHub Actions workflow to schedule and auto-merge blog PRs #522
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Can work for any PR, but we'd use it for blog posts.
Currently we merge blog posts ahead of their intended publication date, and rebuild the site daily to publish the posts. However, the RSS feed gets updated with the post immediately after merging - this is inconvenient for anyone who subscribes to the feed as they will get a notification but the post link won't yet work. In particular, I would like to automatically cross-post the RSS feed to Slack (and in future other platforms) but the RSS Slack app doesn't support scheduling the message into the future, it just sends right when the feed is updated.
Changing the publication date before merging is a bit of a faff. Remembering to merge on the correct date is also impractical. So this workflow handles scheduling a merge on the correct date. All we need to do is add the following syntax at the end of the description in PRs that we want to schedule:
/schedule 2026-01-15