-
-
Notifications
You must be signed in to change notification settings - Fork 204
40 lines (30 loc) · 863 Bytes
/
data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Update Downloads Data
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
downloads_data:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: update # Use the update branch instead of master
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: pip install requests
- name: Run Python script
run: python downloads.py
- name: Set up Git
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
- name: Commit changes
run: |
git add .
git diff-index --quiet HEAD || git commit -m "Update Downloads data"
git push origin update