Update local copy of GraphQL schemas #74
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 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 |