From c8532a9932cc9e9438be8c3fd4258e97831eee77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Tue, 3 Sep 2024 10:56:08 +0200 Subject: [PATCH] chore(ci): avoid running integer tests on push to internal repo --- .github/workflows/aws_tfhe_integer_tests.yml | 5 +++++ .github/workflows/aws_tfhe_signed_integer_tests.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/aws_tfhe_integer_tests.yml b/.github/workflows/aws_tfhe_integer_tests.yml index ad6c4cc920..4e72f8752f 100644 --- a/.github/workflows/aws_tfhe_integer_tests.yml +++ b/.github/workflows/aws_tfhe_integer_tests.yml @@ -26,6 +26,11 @@ on: jobs: should-run: + if: + (github.event_name == 'push' && github.repository == 'zama-ai/tfhe-rs') || + (github.event_name == 'schedule' && github.repository == 'zama-ai/tfhe-rs') || + (github.event_name == 'pull_request' && contains(github.event.label.name, 'approved')) || + github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: pull-requests: write diff --git a/.github/workflows/aws_tfhe_signed_integer_tests.yml b/.github/workflows/aws_tfhe_signed_integer_tests.yml index cf6bbd9426..21bf592ee4 100644 --- a/.github/workflows/aws_tfhe_signed_integer_tests.yml +++ b/.github/workflows/aws_tfhe_signed_integer_tests.yml @@ -26,6 +26,11 @@ on: jobs: should-run: + if: + (github.event_name == 'push' && github.repository == 'zama-ai/tfhe-rs') || + (github.event_name == 'schedule' && github.repository == 'zama-ai/tfhe-rs') || + (github.event_name == 'pull_request' && contains(github.event.label.name, 'approved')) || + github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: pull-requests: write