From 260d89ab7f02355a2f5a2501e2652cc984739a13 Mon Sep 17 00:00:00 2001 From: Daniel Kotik Date: Thu, 30 May 2024 17:14:52 +0200 Subject: [PATCH] Trigger workflows only when ready for review: Closes #514 --- .github/workflows/cpu-tests.yml | 5 ++++- .github/workflows/gh-pages.yml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cpu-tests.yml b/.github/workflows/cpu-tests.yml index 0a180fa80..531fb0c7c 100644 --- a/.github/workflows/cpu-tests.yml +++ b/.github/workflows/cpu-tests.yml @@ -2,7 +2,10 @@ name: CPU tests on: pull_request: - # Trigger on pull requests to master or develop + # Trigger on pull requests to master or develop that are + # marked as "ready for review" (non-draft PRs) + types: + - ready_for_review branches: - master - develop diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7a86ed3e9..fefb55ae6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -2,6 +2,8 @@ name: docs on: pull_request: + types: + - ready_for_review branches: - master - develop