⚙️ ci(workflows): Met à jour le cron et ajoute le déclenchement sur push master.
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
name: Symfony CD - Scheduled Deploy
|
name: Symfony CD - Scheduled Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
schedule:
|
schedule:
|
||||||
# Déclenchement à 2h00 UTC
|
# Déclenchement à 2h, 6h, 12h, 16h, 18h et 20h UTC
|
||||||
- cron: '0 2 * * *'
|
- cron: '0 2,6,12,16,18,20 * * *'
|
||||||
workflow_dispatch: # Bouton manuel dans GitHub Actions
|
workflow_dispatch: # Bouton manuel dans GitHub Actions
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -13,7 +16,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: 🚀 Deploy to Production
|
name: 🚀 Deploy to Production
|
||||||
# Ne s'exécute QUE sur le cron ou le bouton manuel (exclut le push automatique)
|
# Le job ne se lance que pour le cron ou manuellement, pas au push
|
||||||
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user