2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 21:16:45 +00:00
Matthias Mair 92c445f1ad
Fix stats section hitting API limit (#100)
Fixes #95

Use GH token to not hit the API limit
2023-01-19 22:23:05 +01:00

26 lines
567 B
YAML

name: Get stats
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.BOT_PAT }}
- name: Get Stats
run: python .github/get_stats.py
env:
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[Bot] Updated the stats"
branch: main