-
Notifications
You must be signed in to change notification settings - Fork 153
43 lines (35 loc) · 1.03 KB
/
Copy pathauto_update.yml
File metadata and controls
43 lines (35 loc) · 1.03 KB
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
41
42
43
name: Auto Update
on:
schedule:
- cron: "*/9 * * * *"
workflow_dispatch:
concurrency:
group: auto-update
cancel-in-progress: true
jobs:
update-files:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.MY_TOKEN }}
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
cache: pip
cache-dependency-path: source/requirements.txt
- name: Install dependencies
run: cd source && pip install -r requirements.txt
- name: Run script
env:
MY_TOKEN: ${{ secrets.MY_TOKEN }}
GIT_AUTHOR_NAME: "github-actions[bot]"
GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com"
GIT_COMMITTER_NAME: "github-actions[bot]"
GIT_COMMITTER_EMAIL: "github-actions[bot]@users.noreply.github.com"
run: cd source && python main.py