GET BING #984
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.12.8 | |
- 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 "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
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 |