fotoetienne is updating the Uplink schema 🚀 #165
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: 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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # 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@v5 | |
with: | |
commit-message: Update Uplink schema | |
committer: GitHub <noreply@github.com> | |
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`. |