StreamingCommunity/.github/workflows/schedule-script.yml
2024-12-28 15:11:20 +01:00

29 lines
629 B
YAML

name: Run Script Every 6 Hours
on:
schedule:
- cron: "0 */6 * * *" # Esegui ogni 6 ore
workflow_dispatch: # Aggiungi questo trigger manuale
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Execute the script
run: |
python Test/call_updateDomain.py