Skip to content

Commit

Permalink
Merge pull request #359 from WordPress/add-preview-action
Browse files Browse the repository at this point in the history
Add theme preview with WordPress Playground

Co-authored-by: vcanales <[email protected]>
Co-authored-by: juanfra <[email protected]>
  • Loading branch information
3 people authored Sep 18, 2024
2 parents 10dbc90 + bd36f04 commit aec81a8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Preview Theme Changes

on:
pull_request_target:
types: [opened, synchronize]
permissions:
pull-requests: write


jobs:
preview-theme-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Preview Theme Changes
uses: vcanales/action-wp-playground-pr-preview@trunk
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
base-branch: trunk
single-theme: true

0 comments on commit aec81a8

Please sign in to comment.