-
Notifications
You must be signed in to change notification settings - Fork 273
31 lines (31 loc) · 1.24 KB
/
update_apollo_protobuf.yaml
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
name: Update Apollo Protobuf
run-name: ${{ github.actor }} is updating the Apollo Protobuf 🚀
on:
workflow_dispatch:
schedule:
# On the 5 of every hour
- cron: '5 * * * *'
jobs:
Update-Protobuf-Schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Make changes to pull request
run: |
curl -f https://usage-reporting.api.apollographql.com/proto/reports.proto > ./apollo-router/src/plugins/telemetry/proto/reports.proto
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update Apollo Protobuf schema
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: create-pull-request/apollo-proto-updates
team-reviewers: |
router
add-paths: |
apollo-router/src/plugins/telemetry/proto/reports.proto
delete-branch: true
title: 'chore: Update Apollo Protobuf'
body: |
This updates the copy of `reports.proto` which this repository relies on with the latest copy fetched via our public endpoint.