Replies: 3 comments 2 replies
-
name: Run Weather Script
on:
schedule:
- cron: '30 10 * * *' # Runs every day at 10:30 AM UTC
workflow_dispatch: # Allows manual execution from GitHub
jobs:
execute_script:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run the script
run: python ./charo.py try this |
Beta Was this translation helpful? Give feedback.
-
Gracias, Pero eso estaba bien en el código name: Run Weather Script. El fallo no estaba ahí. No sé donde está, pero no se ejecuta automáticamente, Sí, de forma manual. Gracias por todo on: jobs: |
Beta Was this translation helpful? Give feedback.
-
hey @PitziPana Quick heads-up: The weather script workflow in the repo was created about 18 hours ago. You manually triggered it since it hadn't run automatically due to its recent creation. It's set to run tomorrow at 10:30 AM UTC and will continue daily from there. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Tengo un problema, un script en python que he subido a GitHub para que se ejecute todos los días a una hora funciona siempre que lo haga manualmente, pero no en automático. he creado el siguiente código : name: Run Weather Script
on:
schedule:
- cron: '30 11 * * *' # Ejecuta todos los días a las 10:30 AM UTC
workflow_dispatch: # Permite ejecuciones manuales desde GitHub
jobs:
execute_script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run the script
run: python ./charo.py
pero no va en automático. SÍ, SI LO EJECUTO MANUALMENTE
Beta Was this translation helpful? Give feedback.
All reactions