From f48c1c10b6dbf3976328b99bdcf7446f22de233a Mon Sep 17 00:00:00 2001 From: Mark Lawlor Date: Wed, 3 Sep 2025 17:21:07 +1000 Subject: [PATCH] chore: modify release-nightly to also published from labelled PRs --- .github/workflows/release-nightly.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 08dadc5..f7c62ad 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -4,9 +4,17 @@ on: schedule: - cron: "0 0 * * *" # every day at midnight UTC workflow_dispatch: # allow manual trigger + pull_request: # When a PR had the "publish-nightly" label + types: [closed] + branches: [main] jobs: nightly: + if: | + github.event_name != 'pull_request' || + (github.event.pull_request.merged == true && + contains(github.event.pull_request.labels.*.name, 'publish-nightly')) + runs-on: ubuntu-latest steps: - name: Checkout Repository