Skip to content

GET BING

GET BING #978

Workflow file for this run

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