Daily Update from Dark Visitors #49
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: 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 "[email protected]" | |
python code/dark_visitors.py | |
git add -A | |
git diff --quiet && git diff --staged --quiet || (git commit -m "Daily update from Dark Visitors" && git push) | |
shell: bash | |
call-main: | |
needs: dark-visitors | |
uses: ./.github/workflows/main.yml | |
secrets: inherit | |
with: | |
message: "Daily update from Dark Visitors" |