Skip to content

Commit

Permalink
Add monthly workflow for reporting of zimit tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Sep 19, 2024
1 parent 03f53d0 commit 4abcffd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/monthly_reporting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Monthly reporting

on:
schedule:
- cron: "0 8 1 * *"
workflow_dispatch:
push:
branches:
- zimit_report

jobs:

zimit-tasks:
runs-on: ubuntu-24.04
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.12s
architecture: x64
- name: Download script
run: curl -O https://raw.githubusercontent.com/openzim/zimfarm/refs/heads/main/dispatcher/backend/maint-scripts/monthly_report_tasks.py
- name: Create report
run: ZF_URI="https://api.farm.zimit.kiwix.org/v1" FILE_PREFIX="farm.zimit.kiwix.org_tasks_" python monthly_report_tasks.py --
- name: Upload report
run: curl -u "${{ secrets.DRIVE_CREDENTIALS }}" -T "*.csv" -sw '%{http_code}' "https://drive.zimit.kiwix.org/reports/"

0 comments on commit 4abcffd

Please sign in to comment.