Skip to content

Trigger general stats #709

Trigger general stats

Trigger general stats #709

name: Trigger general stats
on:
workflow_dispatch:
schedule:
- cron: '17 7 * * *'
jobs:
trigger_general_stats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run main script
run: python general_stats.py main
env:
HDX_API_TOKEN: ${{ secrets.HDX_MAIN_API_TOKEN }}
- name: Run dev script
run: python general_stats.py dev
env:
HDX_API_TOKEN: ${{ secrets.HDX_DEV_API_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
name: Commit updated sources
with:
commit_message: automatic - general stats times updated