Skip to content

Track Downloads

Track Downloads #683

name: Track Downloads
env:
TZ: "Asia/Kolkata"
on:
workflow_dispatch:
schedule:
- cron: '0 9 * * *'
jobs:
clone:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Get Date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Setup Python
uses: actions/[email protected]
- name: Install Dependencies
run : |
python -m pip install --upgrade pip
pip install requests
- name: Update Data
run : python3 .github/scripts/downloadTracker
- name: Commit to repo
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: PixelOS-Bot
commit_user_email: [email protected]
commit_author: PixelOS-Bot <[email protected]>
commit_message: Update downloads counts (${{ steps.date.outputs.date }})
file_pattern: 'API/downloads/*.json'