From ebbae0c75b92caeac04c77a299e112804152e5aa Mon Sep 17 00:00:00 2001 From: jan iversen Date: Sat, 20 Jul 2024 09:18:49 +0200 Subject: [PATCH 1/3] CI, fail draft PR. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 024ea1405..aa58a1fac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,12 @@ on: workflow_dispatch: jobs: + faildraft: + name: "fail draft" + if: github.event.pull_request.draft == true + steps: + - run: exit 1 + testing: name: ${{ matrix.os }} - ${{ matrix.python }} if: github.event.pull_request.draft == false From 92a9f19143b8063b30f547464d2642419bfe9426 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Sat, 20 Jul 2024 09:26:10 +0200 Subject: [PATCH 2/3] try 2. --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa58a1fac..80740b095 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,10 +18,12 @@ on: jobs: faildraft: - name: "fail draft" + name: fail draft if: github.event.pull_request.draft == true steps: - - run: exit 1 + - name: fail draft + run: | + exit 1 testing: name: ${{ matrix.os }} - ${{ matrix.python }} From 32d3a0a17efd3c659a993277032b5c2e50e7cdff Mon Sep 17 00:00:00 2001 From: jan iversen Date: Sat, 20 Jul 2024 09:28:12 +0200 Subject: [PATCH 3/3] try 3. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80740b095..e166ff9e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,7 @@ jobs: faildraft: name: fail draft if: github.event.pull_request.draft == true + runs-on: ubuntu-latest steps: - name: fail draft run: |