From 068b6ad6c0fea4cb0b9bc44e38d31abf1f94ff3e Mon Sep 17 00:00:00 2001 From: Lovi <62809003+Lovi-0@users.noreply.github.com> Date: Sat, 28 Dec 2024 15:11:20 +0100 Subject: [PATCH] Add manual trigger to workflow --- .github/workflows/schedule-script.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/schedule-script.yml b/.github/workflows/schedule-script.yml index 11d869b..f7ed90d 100644 --- a/.github/workflows/schedule-script.yml +++ b/.github/workflows/schedule-script.yml @@ -1,33 +1,28 @@ name: Run Script Every 6 Hours -# Configura il cron job on: schedule: - - cron: "0 */6 * * *" + - cron: "0 */6 * * *" # Esegui ogni 6 ore + workflow_dispatch: # Aggiungi questo trigger manuale jobs: run-script: runs-on: ubuntu-latest steps: - - # Step 1: Clona il repository - name: Checkout repository uses: actions/checkout@v3 - # Step 2: Configura Python - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.10" - # Step 3: Installa le dipendenze - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - # Step 4: Esegui lo script - name: Execute the script run: | - python Test/call_updateDomain.py \ No newline at end of file + python Test/call_updateDomain.py