-
Notifications
You must be signed in to change notification settings - Fork 1.2k
31 lines (30 loc) · 1.06 KB
/
sync_branch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Sync storage-refactor
on:
schedule:
- cron: 0 23 * * 1-5 # Week-daily at 23:00 UTC / 16:00 PST
workflow_dispatch: {} # Allow manual triggering
jobs:
sync-storage-refactor:
runs-on: ubuntu-latest
name: Syncing storage-refactor
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Get change notes
id: changes
run: echo ::set-output name=change_notes::$(git log storage-refactor..main --oneline --pretty=format:%s)
- name: Opening pull request
id: pull
# https://github.com/marketplace/actions/sync-branches
uses: tretuna/sync-branches@1.4.0
with:
GITHUB_TOKEN: ${{secrets.YOSHI_CODE_BOT_TOKEN}}
FROM_BRANCH: "main"
TO_BRANCH: "storage-refactor"
REVIEWERS: '["noahdietz", "cloud-storage-dpe"]'
PULL_REQUEST_TITLE: "chore: sync main to storage-refactor"
PULL_REQUEST_BODY: "${{ steps.changes.outputs.change_notes }}"