Skip to content

Commit

Permalink
Update Apollo Protobuf via GitHub Actions PR (apollographql#5030)
Browse files Browse the repository at this point in the history
In the same spirit as the existing Apollo Uplink schema automation which
exists in this [file].

This will only allow one PR at a time for this branch name, and only
commit changes (and update that branch) when there is a change.

[file]: https://github.com/apollographql/router/actions/workflows/update_uplink_schema.yml
---------

Co-authored-by: Simon Sapin <[email protected]>
  • Loading branch information
abernix and SimonSapin authored Apr 26, 2024
1 parent b9aa7de commit fc02585
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/update_apollo_protobuf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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@b4ffde65f46336ab88eb53be808477a3936bae11 # 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
pulsar
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.

0 comments on commit fc02585

Please sign in to comment.