From 3ba6dd767d2257056fbf5f29cfa27c9311701cdd Mon Sep 17 00:00:00 2001 From: omaroughriss Date: Wed, 16 Jul 2025 12:55:41 +0200 Subject: [PATCH] Add conditions to use only the schedule event --- .github/workflows/demo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 9a2c5af2..47e5ad09 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -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