From 9dc817c4440215b30a3db4b591feba16e0dee55e Mon Sep 17 00:00:00 2001 From: Karen Alicia Lopez Date: Tue, 18 Feb 2025 15:01:07 +0800 Subject: [PATCH] Update aws.yml Fix if condition to include github.ref == 'refs/heads/main' so only PRs merged into main trigger deployment workflow, and not original feature branches. --- .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 f40d8f5..66003b4 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: