From 13715dcabf599d788e0899c5cb7c3e0755fef43f Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Tue, 27 Aug 2024 21:31:27 +0200 Subject: [PATCH] ci: publish release based on label --- .github/workflows/nightly-release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index c5c8db61..0d627ad8 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -5,15 +5,16 @@ on: - '**' tags: - '!**' - pull_request_review: - types: [submitted] pull_request: - branches: - - main + types: [opened, synchronize, labeled, ready_for_review] + branches: [main] + paths-ignore: + - 'docs/**' + - 'playgrounds/**' jobs: release: - if: github.event.review.state == 'APPROVED' + if: ${{ !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') }} runs-on: ubuntu-latest steps: