-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (42 loc) · 1.15 KB
/
main.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
name: GET BING
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 1 * * *'
repository_dispatch:
types:
- GetDataBase
# watch:
# types: [started]
workflow_dispatch:
jobs:
Crawler:
name: Crawler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: 'Set up Python'
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: 'Install requirements'
run: |
pip install -r ./tools/requirements.txt
- name: 'GET BING'
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: |
python ./tools/bing.py
- name: Commit ALL IN ONE files
run: |
git config --local user.email "admin@icodeq.com"
git config --local user.name "zkeq"
git add .
git commit -m "GitHub Actions Crawler ALL IN ONE at $(date +'%Y-%m-%d %H:%M:%S')"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_GIT_TOKEN }}
branch: main