-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 928 Bytes
/
crawl.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
name: Crawl
on:
workflow_dispatch:
jobs:
crawl:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: pip install
run: pip install -r requirements.txt
- name: check
run: python update.py
- name: Diff
id: diff
run: |
git add -N .
git diff --name-only --exit-code
continue-on-error: true
- name: Commit & Push
run: |
set -x
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git commit -m 'update'
git push
if: steps.diff.outcome == 'failure'