Skip to content

Commit 95e11b9

Browse files
authored
chore: modify release-nightly to also published from labelled PRs (#163)
1 parent 1a6f354 commit 95e11b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release-nightly.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ on:
44
schedule:
55
- cron: "0 0 * * *" # every day at midnight UTC
66
workflow_dispatch: # allow manual trigger
7+
pull_request: # When a PR had the "publish-nightly" label
8+
types: [closed]
9+
branches: [main]
710

811
jobs:
912
nightly:
13+
if: |
14+
github.event_name != 'pull_request' ||
15+
(github.event.pull_request.merged == true &&
16+
contains(github.event.pull_request.labels.*.name, 'publish-nightly'))
17+
1018
runs-on: ubuntu-latest
1119
steps:
1220
- name: Checkout Repository

0 commit comments

Comments
 (0)