fotoetienne is updating the Uplink schema 🚀 #2123
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@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@v5 | |
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`. |