mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-19 08:26:02 +00:00
rename action
This commit is contained in:
parent
0c05461f84
commit
7e2b3ab037
1 changed files with 1 additions and 1 deletions
27
.github/workflows/ai_robots_update.yml
vendored
Normal file
27
.github/workflows/ai_robots_update.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Updates for AI robots files
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
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"
|
||||
echo "Running update script ..."
|
||||
python code/dark_visitors.py
|
||||
echo "... done."
|
||||
git --no-pager diff
|
||||
git add -A
|
||||
git diff --quiet && git diff --staged --quiet || (git commit -m "Daily update from Dark Visitors" && git push)
|
||||
shell: bash
|
Loading…
Add table
Add a link
Reference in a new issue