Skip to content

githubocto/flat-demo-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flat Data Demo: GraphQL Query

This demo is part of a larger Flat Data project created by GitHub OCTO. Read more about the project here.

What this demo does

This repository uses a Flat Data Action to make a GraphQL query to the GitHub API and saves the result in a JSON file. It runs once a month.

Inside .github/workflows/flat.yaml:

- name: Fetch data
        uses: githubocto/flat@v3
        with:
          http_url: https://api.github.com/graphql # GitHub API GraphQL endpoint
          downloaded_filename: queryResponse.json
          authorization: ${{ secrets.API_PAT }} # an API key/secret for the GitHub API being used in the grahpQL query
          axios_config: query.json # a file with axios config details, including a graphQL query

License

MIT

Releases

No releases published

Packages

No packages published