apollographql/Update GraphQL schema

Downloads a new version of your GraphQL schema and opens a pull request if it changed

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Apr 20, 2024
License
MIT
Runtime
Deprecated runtime

Pinned Snippet

workflow.ymlSHA-pinned
uses: apollographql/update-graphql-schema@268c76047cb4693d9814d0fbf746f1f84e4ac0b5 # no releases — HEAD as of 2026-07-13

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
schemaThe path to the schema file to be updatedyes
tokenThe github token to use to create the pull request. Using a machine account personal access token is recommended. if you want the pull request checks to run.yes${{ github.token }}
graph[Apollo Studio users only] The identifier of the Apollo graph used to download the schema.no
key[Apollo Studio users only] The Apollo API key. See https://www.apollographql.com/docs/studio/api-keys/ for more information on how to get your API key.no
graph_variant[Apollo Studio users only] The variant of the Apollo graph used to download the schema.nocurrent
registryUrl[Apollo Studio users only] The registry url of the registry instance used to download the schema.nohttps://graphql.api.apollographql.com/api/graphql
endpointThe url of the GraphQL endpoint for introspectionno
headersA JSON object representing the HTTP headers to use while introspecting `endpoint`no
insecureDo not verify certificates during downloadnofalse
base_branchThe branch into which you want the schema merged. If not set, will use the default branchno
branchThe name of the branch to use to create the pull requestnoupdate-graphql-schema
remoteThe remote to push the branch used to create the pull requestnoorigin
pr_titleThe title of the pull request that is creatednoUpdate GraphQL Schema
pr_bodyThe body of the pull request that is creatednoUpdate GraphQL Schema
commit_user_nameName used for the commit usernogithub-actions[bot]
commit_user_emailEmail address used for the commit usernogithub-actions[bot]@users.noreply.github.com
commit_authorValue used for the commit author. Defaults to the username of whoever triggered this workflow run.no${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit_messageValue used for the commit message.noUpdate GraphQL Schema

no outputs