Update local copy of GraphQL schema #313
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 schema | |
on: | |
schedule: | |
- cron: '0 9 * * *' | |
jobs: | |
update-schema: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Download latest GitHub GraphQL Schema | |
run: curl -L https://docs.github.com/public/fpt/schema.docs.graphql -o assets/github.graphql | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: "Update GitHub GraphQL Schema" | |
branch: update-github-graphql-schema | |
title: "Update GitHub GraphQL Schema" | |
body: "This is an automated pull request to update the local GitHub GraphQL schema" |