githubocto / flat-demo-graphql

A Flat Data GitHub Action demo repo

Home Page:https://octo.github.com/projects/flat-data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Flat Data GitHub Action demo repo

https://octo.github.com/projects/flat-data

License:MIT License