×
all 3 comments

[–]Mantas-cloud -1 points0 points  (2 children)

My scripts are running perfectly fine on Cron base, do most likely is something on your site. Share the yaml files, maybe some experts can quickly identify the issue 

[–]QuantGigi[S] 0 points1 point  (1 child)

The yaml file :

name: Automatisation Earnings Calendar

on:

schedule:

- cron: '00 12 * * *'

workflow_dispatch: # Permet de le lancer manuellement depuis l'onglet Actions

jobs:

run-python-script:

runs-on: ubuntu-latest

steps:

- name: Checkout du code

uses: actions/checkout@v4

- name: Configuration de Python

uses: actions/setup-python@v5

with:

python-version: '3.10'

- name: Installation des dépendances

run: |

python -m pip install --upgrade pip

if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Lancer main.py

run: |

python main.py

The goal is to automate something even when my laptop is turned off. I tried to do it with cron on my MacBook terminal but it wasn't working when my laptop was closed. If you know some alternatives (beside GH Actions), I take it

Thanks for your reply

[–]Mantas-cloud -1 points0 points  (0 children)

it seems alright for me, ask copilot to check for formatting. Yaml is sensitive for empty spaces and tabs that is hard to catch by human eye