From f9ec63050929e6f4c78862e9b8591fc83e39f9ef Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 24 Apr 2025 11:39:45 +0200 Subject: [PATCH] [ci] get rid of ok-to-test label Signed-off-by: Andrei Kvapil --- .github/workflows/pull-requests-release.yaml | 2 +- .github/workflows/pull-requests.yaml | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pull-requests-release.yaml b/.github/workflows/pull-requests-release.yaml index 815ccb59..b8710be7 100644 --- a/.github/workflows/pull-requests-release.yaml +++ b/.github/workflows/pull-requests-release.yaml @@ -12,8 +12,8 @@ jobs: contents: read packages: write + # Run only when the PR carries the "release" label and not closed. if: | - contains(github.event.pull_request.labels.*.name, 'ok-to-test') && contains(github.event.pull_request.labels.*.name, 'release') && github.event.action != 'closed' diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 92226c2a..6c25d3cf 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -12,20 +12,9 @@ jobs: contents: read packages: write - # ───────────────────────────────────────────────────────────── - # Run automatically for internal PRs (same repo). - # For external PRs (forks) require the "ok‑to‑test" label. # Never run when the PR carries the "release" label. - # ───────────────────────────────────────────────────────────── if: | - !contains(github.event.pull_request.labels.*.name, 'release') && - ( - github.event.pull_request.head.repo.full_name == github.repository || - ( - github.event.pull_request.head.repo.full_name != github.repository && - contains(github.event.pull_request.labels.*.name, 'ok-to-test') - ) - ) + !contains(github.event.pull_request.labels.*.name, 'release') steps: - name: Checkout code