https://github.com/kasuboski/dev-to-stats-action
A GitHub Action to grab your Dev.to stats
https://github.com/kasuboski/dev-to-stats-action
actions dev-to stats
Last synced: about 2 months ago
JSON representation
A GitHub Action to grab your Dev.to stats
- Host: GitHub
- URL: https://github.com/kasuboski/dev-to-stats-action
- Owner: kasuboski
- License: mit
- Created: 2020-09-02T18:22:50.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T10:09:05.000Z (over 3 years ago)
- Last Synced: 2026-02-10T21:13:00.327Z (4 months ago)
- Topics: actions, dev-to, stats
- Language: TypeScript
- Homepage:
- Size: 612 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get Article Stats from Dev.to
```yaml
name: Get Stats
on:
schedule:
- cron: "*/30 * * * *"
jobs:
pull-stats:
runs-on: ubuntu-latest
name: Get Stats from Dev.to
steps:
- uses: kasuboski/dev-to-stats-action@v1
with:
apiKey: ${{ secrets.API_KEY }}
```
You need to add a Dev.to API Key as a secret. You can find instructions to get one at [dev.to](https://docs.dev.to/api/#section/Authentication/api_key).
The action will output a file at `dev-to-stats/stats.json` by default, but can be configured with the `outFile` input. The file should look something like below:
```json
{"public_reactions_count":12,"page_views_count":123,"comments_count":0}
```