From 727e77de5cb08750e88d00666fbd8edb714ade30 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..64bab02f 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -4,9 +4,13 @@ on: push: branches: - main + pull_request: + types: + - labeled jobs: build: + if: github.ref == 'refs/heads/main' || github.event.pull_request.labels.*.name contains 'preview-release' name: Create Preview Release timeout-minutes: 15 runs-on: ubuntu-latest