From c9580bd2cc63e2fcae6388a0af9875f282a35876 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Thu, 5 Sep 2024 17:04:49 +0200 Subject: [PATCH] Only delpoy to k8s on local PRs Signed-off-by: Colin Wilk --- .github/workflows/helm_pr_deployment.yml | 1 + .github/workflows/helm_pr_deployment_delete.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/helm_pr_deployment.yml b/.github/workflows/helm_pr_deployment.yml index 2ed33438db1d..d0c31fd01299 100644 --- a/.github/workflows/helm_pr_deployment.yml +++ b/.github/workflows/helm_pr_deployment.yml @@ -11,6 +11,7 @@ on: jobs: deploy: + if: ${{ github.event.pull_request.head.repo.full_name == 'ls1intum/Artemis' }} runs-on: ubuntu-latest environment: k8s concurrency: k8s-pr${{ github.event.pull_request.number }} diff --git a/.github/workflows/helm_pr_deployment_delete.yml b/.github/workflows/helm_pr_deployment_delete.yml index eda1c6d1f993..c0d98e03cc53 100644 --- a/.github/workflows/helm_pr_deployment_delete.yml +++ b/.github/workflows/helm_pr_deployment_delete.yml @@ -11,6 +11,7 @@ on: jobs: destroy: + if: ${{ github.event.pull_request.head.repo.full_name == 'ls1intum/Artemis' }} runs-on: ubuntu-latest environment: k8s concurrency: k8s-pr${{ github.event.pull_request.number }}