Updates for AI robots files #422
This file contains hidden or 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: Updates for AI robots files | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| dark-visitors: | |
| runs-on: ubuntu-latest | |
| name: dark-visitors | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - run: | | |
| pip install beautifulsoup4 requests | |
| git config --global user.name "dark-visitors" | |
| git config --global user.email "[email protected]" | |
| echo "Updating robots.json with data from darkvisitor.com ..." | |
| python code/robots.py --update | |
| echo "... done." | |
| git --no-pager diff | |
| git add -A | |
| if ! git diff --cached --quiet; then | |
| git commit -m "Update from Dark Visitors" | |
| git rebase origin/main | |
| git push | |
| else | |
| echo "No changes to commit." | |
| fi | |
| shell: bash | |
| convert: | |
| name: convert | |
| needs: dark-visitors | |
| uses: ./.github/workflows/main.yml | |
| secrets: inherit | |
| with: | |
| message: "Update from Dark Visitors" |