-
-
Notifications
You must be signed in to change notification settings - Fork 112
52 lines (40 loc) · 1.03 KB
/
run-crawler.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Run scanner
on:
push:
branches: [ "master" ]
workflow_dispatch:
schedule:
- cron: '0 17 * * *'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: thepbone/app-crawler
- uses: actions/checkout@v3
with:
repository: thepbone/awesome-shizuku
path: './list'
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run crawler
env:
GITHUB_AUTH: ${{ secrets.GH_PAT }}
SUMMARY_FILE: "list/pages/TODO.md"
run: |
python main.py ./list
cat ./list/pages/TODO.md >> $GITHUB_STEP_SUMMARY
- name: Publish summary changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: ./list
commit_message: Update TODO.md
file_pattern: pages/TODO.md