Skip to content

Update local copy of GraphQL schemas #64

Update local copy of GraphQL schemas

Update local copy of GraphQL schemas #64

name: Update local copy of GraphQL schemas
on:
workflow_dispatch:
schedule:
- cron: 0 9 * * 1
jobs:
update-schema:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Run introspection
uses: obmarg/action-graphql-introspect@main
with:
server-url: https://swapi-graphql.netlify.app/.netlify/functions/index
output-file: schemas/starwars.schema.graphql
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: graphql-schema-updates
title: "chore: update star wars graphql schema"
commit-message: |
chore: update star wars graphql schema
this is an automated pull request to update our local schema cache