From ff18a4ba1e4106685268cf64b35b71eeaf1cbaff Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 2 Sep 2024 21:02:57 +0200 Subject: [PATCH] build: create preview releases on pr's with preview-release labels --- .github/workflows/preview-release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index 34d6f536..c5d0a8b9 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -4,9 +4,13 @@ on: push: branches: - main + pull_request: + branches: + - '**' jobs: build: + if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'preview-release') name: Create Preview Release timeout-minutes: 15 runs-on: ubuntu-latest