Add Gitea Actions workflow to update profile language stats
This commit is contained in:
1 parent
05bced0be0
commit
38361a6e4a
1 file changed
+23
@@ -0,0 +1,23 @@
|
|||||||
|
name: Update Language Stats
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 6 * * *" # every day at 06:00
|
||||||
|
workflow_dispatch: # allow manual runs from the Actions tab
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lang-stats:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: astral-sh/setup-uv@v6
|
||||||
|
|
||||||
|
- name: Update .profile README
|
||||||
|
env:
|
||||||
|
# Secret names can't start with GITEA_, so the token is stored
|
||||||
|
# as PROFILE_STATS_TOKEN and mapped to what the script expects.
|
||||||
|
GITEA_BASE_URL: ${{ gitea.server_url }}
|
||||||
|
GITEA_USERNAME: ${{ gitea.repository_owner }}
|
||||||
|
GITEA_TOKEN: ${{ secrets.PROFILE_STATS_TOKEN }}
|
||||||
|
run: uv run scripts/language_stats.py
|
||||||
Reference in new issue
Block a user