Skip to content

Commit 4fa8539

Browse files
authored
Merge pull request #50 from tarosky/feature/playground-preview
Add WordPress Playground PR preview
2 parents 6708562 + dcf3a81 commit 4fa8539

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Playground Preview - Build
2+
3+
on:
4+
pull_request:
5+
types: [labeled, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
if: >
13+
contains(github.event.pull_request.labels.*.name, 'playground') &&
14+
(github.event.action != 'labeled' || github.event.label.name == 'playground')
15+
uses: tarosky/workflows/.github/workflows/playground-preview-build.yml@main
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Playground Preview - Publish
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Playground Preview - Build"]
6+
types:
7+
- completed
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
publish:
15+
if: >
16+
github.event.workflow_run.event == 'pull_request' &&
17+
github.event.workflow_run.conclusion == 'success'
18+
uses: tarosky/workflows/.github/workflows/playground-preview-publish.yml@main

0 commit comments

Comments
 (0)