Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add theme preview with WordPress Playground #359

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions patterns/hidden-404.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@
<!-- /wp:columns -->
</div>
<!-- /wp:group -->
<?php echo 'Test Change'; ?>
juanfra marked this conversation as resolved.
Show resolved Hide resolved
Loading