-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 990 Bytes
/
user-count.yml
File metadata and controls
32 lines (29 loc) · 990 Bytes
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
30
31
name: Run user-count script daily
on:
schedule:
- cron: "5 3 1,8,15,22,29 * *"
workflow_dispatch:
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: pip install --break-system-packages requests python-dotenv
- run: python3 user-count/arkscript-usage.py
env:
GITHUB_TOKEN: ${{ secrets.WEB_API_TOKEN }}
- name: Commit and push
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.STATS_GITHUB_TOKEN }}
run: |
git config --unset-all http.https://github.com/.extraheader
git config user.name "User count bot"
git config user.email ""
git config remote.origin.url 'https://${{ secrets.STATS_GITHUB_TOKEN }}@github.com/ArkScript-lang/stats.git'
git add -f data/users.csv
git commit -m "Update stats"
git push -u origin master