diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml new file mode 100644 index 00000000..35a945ae --- /dev/null +++ b/.github/workflows/pr-preview.yml @@ -0,0 +1,20 @@ +name: PR Preview + +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +jobs: + preview: + name: Post Playground preview button + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Post Playground Preview Button + uses: WordPress/action-wp-playground-pr-preview@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + mode: append-to-description + plugin-path: .