mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-19 00:26:01 +00:00
add dark visitor workflow
This commit is contained in:
parent
e12ddc0f42
commit
192bf67631
2 changed files with 60 additions and 0 deletions
22
.github/workflows/daily_update.yml
vendored
Normal file
22
.github/workflows/daily_update.yml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue