forked from apollographql/router
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.32 KB
/
update_uplink_schema.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
name: Update Uplink Schema
run-name: ${{ github.actor }} is updating the Uplink schema 🚀
on:
workflow_dispatch:
schedule:
# On the 5 of every hour
- cron: '5 * * * *'
jobs:
Update-Uplink-Schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Rover
run: |
curl -sSL https://rover.apollo.dev/nix/v0.14.1 | sh
echo "$HOME/.rover/bin" >> $GITHUB_PATH
- name: Make changes to pull request
run: |
rover graph introspect https://uplink.api.apollographql.com/ | perl -pe 'chomp if eof' > ./apollo-router/src/uplink/uplink.graphql
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update Uplink schema
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: create-pull-request/uplink-schema-updates
add-paths: |
apollo-router/src/uplink/uplink.graphql
delete-branch: true
title: 'chore: Update Uplink schema'
body: |
This updates the copy of `uplink.graphql` which this repository relies on with the latest copy fetched via `rover graph introspect`.