add dark visitor workflow

This commit is contained in:
Chenghao Mou 2024-08-06 17:01:56 +01:00
parent e12ddc0f42
commit 192bf67631
2 changed files with 60 additions and 0 deletions

22
.github/workflows/daily_update.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Daily Update from Dark Visitors
on:
schedule:
- cron: "0 0 * * *"
jobs:
dark-visitors:
runs-on: ubuntu-latest
name: dark-visitors
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- run: |
pip install beautifulsoup4 requests
git config --global user.name "dark-visitors"
git config --global user.email "dark-visitors@users.noreply.github.com"
python code/dark_visitors.py
git add -A
git commit -m "Daily update from Dark Visitors"
git push
shell: bash