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

Bump the github-actions group with 4 updates #7035

Bump the github-actions group with 4 updates

Bump the github-actions group with 4 updates #7035

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.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@136412a57a7081aa63c935a2cc2918f76c34f514 # v1.11.2
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