Repository navigation
build(deps): bump actions/checkout from 6 to 7 #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Playground preview | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| preview: | |
| name: Add Playground preview button | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| # Single-workflow path: no npm build step, so the repo can be zipped as-is. | |
| # Requires a public repo, Playground downloads the plugin in the visitor's browser. | |
| - name: Add preview link to PR | |
| uses: WordPress/action-wp-playground-pr-preview@v3 | |
| with: | |
| plugin-path: '.' | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |