From 6cbee27c2e9c63e4b549a36170c109ad604bfc47 Mon Sep 17 00:00:00 2001 From: Vedha Viyash <49812166+vedhav@users.noreply.github.com> Date: Thu, 12 Oct 2023 05:40:45 +0200 Subject: [PATCH] Trigger deployment only when pushed on main (#86) We only want the deployments to occur in these three scenarios: 1. Code is merged to `main` 2. Workflow dispatch when we need to test deployments manually 3. Automatically trigger it every day at 3:12 AM --- .github/workflows/deploy.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2cc5c08c..d3ca8ee8 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -3,6 +3,8 @@ name: Deploy Apps 🚀 on: push: + branches: + - main workflow_dispatch: schedule: - cron: "12 3 * * *"