gRPC Source Sync #1007
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |