Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 910 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 910 Bytes

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