Skip to content

gRPC Source Sync

gRPC Source Sync #996

name: gRPC Source Sync
on:
schedule:
- cron: '0 0 * * *' # Once per day at midnight
repository_dispatch:
types: [grpc-source-sync]
jobs:
gRPC-Native-Source-Shallow-Sync:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Prepare environment
run: scripts/prepare_env.sh
- name: Shallow source source
run: scripts/sync_grpc_src_shallow.sh
- name: Collect revision hash
run: |
echo "grpc_src_revision=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Create or update pull request
uses: peter-evans/create-pull-request@v3
with:
title: "[bot] gRPC native source shallow sync"
commit-message: Native source sync at revision @${{ env.grpc_src_revision }}
body: |
Native source sync at revision @${{ env.grpc_src_revision }}
delete-branch : true
labels: |
kind/bot
area/automation
reviewers: |
HannahShiSFB
sampajano