Skip to content

Daily Tor Expert Bundle Version Update #3

Daily Tor Expert Bundle Version Update

Daily Tor Expert Bundle Version Update #3

Workflow file for this run

name: "Daily Tor Expert Bundle Version Update"
# Schedule the workflow to run every 30 minutes
on:
schedule:
# Runs every 30th minute (e.g., at :00, :30)
- cron: '*/30 * * * *'
# Allows you to manually trigger the workflow from the GitHub UI
workflow_dispatch:
# Grant write permissions to the workflow
permissions:
contents: write
jobs:
update-tor-versions:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Use GITHUB_TOKEN with proper permissions
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tor version scraper
run: python main.py
- name: Configure Git
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Commit and push changes
run: |
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "[Auto] Update Tor versions data - $(date)"
git push
fi