https://github.com/scientific-python/devstats-query-action
GH Action to query devstats for a project, and upload as an artifact
https://github.com/scientific-python/devstats-query-action
Last synced: 2 months ago
JSON representation
GH Action to query devstats for a project, and upload as an artifact
- Host: GitHub
- URL: https://github.com/scientific-python/devstats-query-action
- Owner: scientific-python
- License: bsd-3-clause
- Created: 2024-11-14T21:49:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-13T00:37:04.000Z (11 months ago)
- Last Synced: 2025-11-12T06:06:12.513Z (5 months ago)
- Size: 13.7 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Download and bundle devstats data
This action downloads devstats for one or more GitHub repositories,
and uploads the result as an artifact.
## Example
```yaml
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:
```yaml
- 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.