Skip to content

Commit 458cd7c

Browse files
chore(ci): add sync branch workflow for storage-refactor (#6334)
* chore(ci): add sync branch workflow for storage-refactor * add change notes * only on weekdays * change job names * add cloud-storage-dpe to reviewers Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
1 parent bb00af9 commit 458cd7c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/sync_branch.yaml

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

0 commit comments

Comments
 (0)