diff --git a/.github/workflows/aws_tfhe_integer_tests.yml b/.github/workflows/aws_tfhe_integer_tests.yml index f3ec7f9348..04fa00ff45 100644 --- a/.github/workflows/aws_tfhe_integer_tests.yml +++ b/.github/workflows/aws_tfhe_integer_tests.yml @@ -31,7 +31,8 @@ jobs: setup-instance: name: Setup instance (unsigned-integer-tests) if: (github.event_name == 'push' && github.repository == 'zama-ai/tfhe-rs') || - github.event_name != 'pull_request' || contains(github.event.label.name, 'approved') + (github.event_name == 'pull_request' && contains(github.event.label.name, 'approved')) || + (github.event_name != 'push' && github.event_name != 'pull_request') runs-on: ubuntu-latest outputs: runner-name: ${{ steps.start-instance.outputs.label }} diff --git a/.github/workflows/aws_tfhe_signed_integer_tests.yml b/.github/workflows/aws_tfhe_signed_integer_tests.yml index 586e016353..62ae10718c 100644 --- a/.github/workflows/aws_tfhe_signed_integer_tests.yml +++ b/.github/workflows/aws_tfhe_signed_integer_tests.yml @@ -31,7 +31,8 @@ jobs: setup-instance: name: Setup instance (signed-integer-tests) if: (github.event_name == 'push' && github.repository == 'zama-ai/tfhe-rs') || - github.event_name != 'pull_request' || contains(github.event.label.name, 'approved') + (github.event_name == 'pull_request' && contains(github.event.label.name, 'approved')) || + (github.event_name != 'push' && github.event_name != 'pull_request') runs-on: ubuntu-latest outputs: runner-name: ${{ steps.start-instance.outputs.label }}