diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 00000000..47e00b34 --- /dev/null +++ b/.github/workflows/preview.yml @@ -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