Skip to content

About

GH Action to query devstats for a project, and upload as an artifact

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

7 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Download and bundle devstats data

This action downloads devstats for one or more GitHub repositories, and uploads the result as an artifact.

Example

name: Query devstats

on:
  push:
    branches:
      - main
      - v*

jobs:
  devstats-query:
    runs-on: ubuntu-latest
    steps:
      - uses: stefanv/devstats-download-action@main
        with:
          repos: |
            - yourname/reponame
            - yourname/reponame-2
          artifact-name: devstats-yourname

The above would produce an artifact named devstats-yourname.zip, containing (with today's date) 2024-11-14-devstats-reponame.tar.xz and 2024-11-14-devstats-reponame-2.tar.xz.

By default, we use the GitHub-provisioned token, but you may need to set one manually if you're hitting rate limits:

      - uses: stefanv/devstats-download-action@main
        with:
          token: ${{ secrets.GRAPHQL_API_TOKEN }}

The token is a "personal access token" created at https://github.com/settings/tokens?type=beta. It does not need any permissions. Set up the token as GRAPHQL_API_TOKEN at https://github.com/your-org/your-repo/settings/secrets/actions.

About

GH Action to query devstats for a project, and upload as an artifact

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors