Skip to content

ToS Değişiklik Takibi #5

ToS Değişiklik Takibi

ToS Değişiklik Takibi #5

Workflow file for this run

name: ToS Değişiklik Takibi
on:
schedule:
- cron: '0 9 * * 1'
workflow_dispatch:
permissions:
contents: write
issues: write
jobs:
tos-check:
runs-on: ubuntu-latest
steps:
- name: Repo'yu çek
uses: actions/checkout@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Python kur
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Bağımlılıkları yükle
run: pip install requests beautifulsoup4
- name: ToS takip scriptini çalıştır
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: python araclar/tos-tracker.py
- name: Hash değişikliklerini commit et
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add araclar/hashes.json
git diff --staged --quiet || git commit -m "chore: ToS hash güncellendi [skip ci]"
git push