From 81e86762a9b5635e09a945e7a9340db9fde982e4 Mon Sep 17 00:00:00 2001 From: Karen Alicia Lopez Date: Tue, 18 Feb 2025 22:32:54 +0800 Subject: [PATCH] Update aws.yml update yaml file to only deploy from main branch --- .github/workflows/aws.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index e21edbe..dbbf686 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -11,7 +11,7 @@ on: jobs: deployment: - if: github.event.pull_request.merged == true || github.event_name == 'push' + if: (github.event.pull_request.merged == true && github.ref == 'refs/heads/main') || github.event_name == 'push' runs-on: ubuntu-latest environment: PythonWA AWS steps: