Add conditions to use only the schedule event
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-image-lecoffre (push) Has been skipped
Demo - Build & Deploy to Scaleway / deploy-to-scaleway-lecoffre (push) Has been skipped

This commit is contained in:
omaroughriss 2025-07-16 12:55:41 +02:00
parent 36e1bae353
commit 3ba6dd767d

View File

@ -17,6 +17,7 @@ env:
jobs:
build-and-push-image-lecoffre:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/legacy_dev' }}
steps:
- uses: actions/checkout@v4
- name: Setup SSH
@ -42,7 +43,8 @@ jobs:
deploy-to-scaleway-lecoffre:
needs: build-and-push-image-lecoffre
runs-on: ubuntu-latest
environment: staging
environment: demo
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/legacy_dev' }}
steps:
- name: Install CLI
uses: scaleway/action-scw@v0