-
-
Notifications
You must be signed in to change notification settings - Fork 127
29 lines (28 loc) · 1.03 KB
/
stats.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
on:
schedule:
# https://crontab.guru/once-a-day
- cron: 0 0 * * *
workflow_dispatch: {}
name: Stats
jobs:
stats:
runs-on: ubuntu-latest
steps:
- uses: gr2m/[email protected]
id: stats
with:
id: 3414
private_key: ${{ secrets.WIP_APP_PRIVATE_KEY }}
- run: "echo installations: '${{ steps.stats.outputs.installations }}'"
- run: "echo most popular repositories: '${{ steps.stats.outputs.popular_repositories }}'"
- uses: logflare/action@v1
with:
api_key: ${{ secrets.LOGFLARE_API_KEY }}
source_id: ${{ secrets.LOGFLARE_SOURCE_ID }}
message: "stats: ${{ steps.stats.outputs.installations }} / ${{ steps.stats.outputs.repositories }}"
metadata: |
{
"num_installations": ${{ steps.stats.outputs.installations }},
"num_repositories": ${{ steps.stats.outputs.repositories }},
"num_suspended_installations": ${{ steps.stats.outputs.suspended_installations }}
}