Skip to content

downloads

downloads #991

Workflow file for this run

name: downloads
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 14 * * *"
workflow_dispatch: null
jobs:
update-counters:
runs-on: ubuntu-latest
name: downloads
steps:
- name: checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
with:
python-version: 3.9
channels: conda-forge
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
- name: install deps
shell: bash -l {0}
run: |
mamba install -y -q --file conda-requirements.txt
- name: run script
shell: bash -l {0}
run: |
python scripts/count_downloads.py
- name: commit
if: github.event_name != 'pull_request'
shell: bash -l {0}
run: |
git config --global user.email "79913779+conda-forge-curator[bot]@users.noreply.github.com"
git config --global user.name "conda-forge-curator[bot]"
git config --global pull.rebase false
git pull
git add data/download_counts.json
git commit --allow-empty -m '[ci skip] download data'
for i in `seq 1 10`; do
git pull
git push
done