-
Notifications
You must be signed in to change notification settings - Fork 23
37 lines (33 loc) · 1.06 KB
/
grpc_source_sync.yml
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
32
33
34
35
36
37
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