Skip to content

V2Ray Scraper

V2Ray Scraper #15375

Workflow file for this run

name: V2Ray Scraper
on:
workflow_dispatch:
schedule:
- cron: "0,15,30,45 * * * *"
permissions:
contents: write
jobs:
scrape-and-commit:
runs-on: ubuntu-latest
steps:
- name: 📥 Check out repository
uses: actions/checkout@v4
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: ⚙️ Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # <-- pytz هم نصب می‌شود
- name: 🕸️ Run scraping script
run: python scraper.py
- name: 🔧 Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: ⬆️ Commit and Push Changes
run: |
git add output_configs/ README.md #
if git diff --staged --quiet; then
echo "No changes detected. Skipping commit."
else
echo "Changes detected. Committing and pushing..."
git commit -m "docs: Update README and config files 🤖 [skip ci]"
git push
fi