From 1f3d271907750197d0ef53c7580547d8cb8261cc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 18:52:41 +0000 Subject: [PATCH 1/2] GH Actions: Bump actions/upload-artifact from 6 to 7 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/playground.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml index 5e6cdc8..e3e8351 100644 --- a/.github/workflows/playground.yml +++ b/.github/workflows/playground.yml @@ -97,7 +97,7 @@ jobs: # Upload the FOLDER (not a .zip). The artifact service zips it for us, # keeping the top-level folder name inside the archive. - name: Upload plugin artifact - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: ${{ secrets.DOT_ORG_SLUG }} path: ${{ steps.prep.outputs.PKG_DIR }} From 8c0f9faadd8bcd5b6604642adcd8e351d9be95f4 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Tue, 17 Nov 2026 11:45:38 +0100 Subject: [PATCH 2/2] Fix Playground CI for Dependabot and fork pull requests --- .github/dependabot.yml | 1 - .github/workflows/playground.yml | 12 ++++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 50e0ff7..74ea876 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -15,4 +15,3 @@ updates: prefix: "GH Actions:" labels: - "changelog: non-user-facing" - - "yoast cs/qa" diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml index 5e6cdc8..1929a28 100644 --- a/.github/workflows/playground.yml +++ b/.github/workflows/playground.yml @@ -6,6 +6,8 @@ on: jobs: playground: runs-on: ubuntu-latest + env: + PLUGIN_SLUG: yoast-comment-hacks permissions: contents: read pull-requests: write @@ -77,14 +79,14 @@ jobs: id: blueprint run: | set -euxo pipefail - ARTIFACT_URL="https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/${{ secrets.DOT_ORG_SLUG }}.zip" + ARTIFACT_URL="https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/${{ env.PLUGIN_SLUG }}.zip" # Use Node.js to parse, modify, and stringify the JSON BLUEPRINT=$(node -e " const fs = require('fs'); const blueprint = JSON.parse(fs.readFileSync('.wordpress-org/blueprints/playground.json', 'utf8')); blueprint.plugins = blueprint.plugins.map(plugin => - plugin === '${{ secrets.DOT_ORG_SLUG }}' ? '$ARTIFACT_URL' : plugin + plugin === '${{ env.PLUGIN_SLUG }}' ? '$ARTIFACT_URL' : plugin ); console.log(JSON.stringify(blueprint)); ") @@ -99,15 +101,17 @@ jobs: - name: Upload plugin artifact uses: actions/upload-artifact@v6 with: - name: ${{ secrets.DOT_ORG_SLUG }} + name: ${{ env.PLUGIN_SLUG }} path: ${{ steps.prep.outputs.PKG_DIR }} # Optional: faster uploads for already-compressed assets compression-level: 0 # Comment with a Playground link that installs from the artifact ZIP - uses: mshick/add-pr-comment@v2 + # Fork and Dependabot runs can build artifacts but cannot write PR comments. + if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && github.event.pull_request.user.login != 'dependabot[bot]' with: message: | **Test on Playground** [Test this pull request on the Playground](https://playground.wordpress.net/#${{ steps.blueprint.outputs.blueprint }}) - or [download the zip](https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/${{ secrets.DOT_ORG_SLUG }}.zip) + or [download the zip](https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/${{ env.PLUGIN_SLUG }}.zip)