Skip to content

Commit

Permalink
chore(ci): add sync branch workflow for storage-refactor (#6334)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
noahdietz and gcf-merge-on-green[bot] authored Jul 18, 2022
1 parent bb00af9 commit 458cd7c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync_branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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.GITHUB_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 }}"

0 comments on commit 458cd7c

Please sign in to comment.