From 43e0fe655ea9a1251f73a53405dfb5d0650694b5 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn <100320+knorrium@users.noreply.github.com> Date: Wed, 6 Jul 2022 16:29:38 -0700 Subject: [PATCH] Update CI to trigger on PRs and exclude from ops activities --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c65b3821..90fcaa6d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,14 @@ name: CI Pipeline for the Backend and Frontend on: - push: + pull_request: + types: [ opened, review_requested, synchronize ] env: NODE_VERSION: 16.15.0 jobs: backend: + if: "!contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')" strategy: matrix: flavor: ['dev', 'prod'] @@ -48,6 +50,7 @@ jobs: working-directory: ${{ matrix.flavor }}/backend frontend: + if: "!contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')" strategy: matrix: flavor: ['dev', 'prod']