From a85d944c2cd528da2edcecf75b691caea9a9d557 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Tue, 17 Nov 2026 19:27:58 +0100 Subject: [PATCH] Fix merged PR Playground blueprint generation --- .github/workflows/playground-merged.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playground-merged.yml b/.github/workflows/playground-merged.yml index e86634e..4229f49 100644 --- a/.github/workflows/playground-merged.yml +++ b/.github/workflows/playground-merged.yml @@ -9,11 +9,15 @@ jobs: if_merged: if: github.event.pull_request.merged == true runs-on: ubuntu-latest + env: + PLUGIN_SLUG: yoast-comment-hacks permissions: contents: read pull-requests: write actions: read steps: + - uses: actions/checkout@v7 + - name: Prepare blueprint with artifact link id: blueprint run: | @@ -25,7 +29,7 @@ jobs: const fs = require('fs'); const blueprint = JSON.parse(fs.readFileSync('.wordpress-org/blueprints/playground.json', 'utf8')); blueprint.plugins = blueprint.plugins.map(plugin => - plugin === '${{ github.event.repository.name }}' ? '$ARTIFACT_URL' : plugin + plugin === '${{ env.PLUGIN_SLUG }}' ? '$ARTIFACT_URL' : plugin ); console.log(JSON.stringify(blueprint)); ")