WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

counters

counters #8184

Workflow file for this run

name: counters
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch: null
jobs:
update-counters:
runs-on: ubuntu-latest
name: counters
steps:
- name: checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.10"
- name: Install deps
run: python -m pip install pygithub requests conda-forge-metadata
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1.10.3
with:
app-id: ${{ secrets.CF_CURATOR_APP_ID }}
private-key: ${{ secrets.CF_CURATOR_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Run script
run: python scripts/live_counts.py
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: Commit to repo
if: github.event_name != 'pull_request'
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 add data/live_counts.json data/labels.json
git commit --allow-empty -m '[ci skip] counter data'
git pull
git push