Skip to content

Commit

Permalink
split
Browse files Browse the repository at this point in the history
  • Loading branch information
koaning committed Mar 25, 2024
1 parent 44e2543 commit c0daccd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cron-nonpython.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Collect Non-Python statistics

on:
workflow_dispatch:
schedule:
- cron: '0 4 * * *'

jobs:
scheduled:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: none
packages: none
steps:
- name: Check out this repo
uses: actions/checkout@v2
- name: Fetch latest data
env:
GH_TOKEN: ${{secrets.GH}}
PEPY_TOKEN: ${{secrets.PEPY}}
run: |-
python -m pip install -r requirements.txt
python scripts/corese.py
python scripts/render.py
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add -A
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push
ß
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Collect statistics
name: Collect Python statistics

on:
workflow_dispatch:
Expand All @@ -24,7 +24,6 @@ jobs:
python -m pip install -r requirements.txt
python scripts/fetch.py
python scripts/render.py
python scripts/corese.py
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
Expand Down

0 comments on commit c0daccd

Please sign in to comment.