From 43c4b7283de8c32431cae209a95302bf39709a35 Mon Sep 17 00:00:00 2001 From: awtkns Date: Fri, 12 May 2023 20:46:41 +0300 Subject: [PATCH] :construction_worker: Update action run conditions --- .github/workflows/node.js.yml | 4 ++++ .github/workflows/python.yml | 8 ++++---- .github/workflows/webhooks.yml | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index cfe9e9318d..762ade1cb5 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -3,8 +3,12 @@ name: Node.js CI on: push: branches: ["main"] + paths: + - 'next/**' pull_request: branches: ["main"] + paths: + - 'next/**' jobs: build: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 97ed58e3f3..543b5008bf 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,9 +1,9 @@ name: Testing Platform on: - push: - branches: [ "main" ] - paths: - - 'platform/**' +# push: +# branches: [ "main" ] +# paths: +# - 'platform/**' pull_request: branches: [ "main" ] paths: diff --git a/.github/workflows/webhooks.yml b/.github/workflows/webhooks.yml index 0adec4db28..adc9d3378f 100644 --- a/.github/workflows/webhooks.yml +++ b/.github/workflows/webhooks.yml @@ -9,6 +9,7 @@ jobs: name: Invoke Webhooks runs-on: ubuntu-latest environment: production + if: github.repository == 'reworkd/AgentGPT' steps: - name: Trigger Webhooks run: |