From a46e8e4eca29d8cd022375e307416de051fb3d43 Mon Sep 17 00:00:00 2001 From: erseco Date: Tue, 9 Jun 2026 18:23:48 +0100 Subject: [PATCH] fix(playground): keep blueprint editor version in sync with .editor-version The playground downloaded editor v4.0.0 while .editor-version had moved to v4.0.1: check-editor-releases.yml only bumped the .editor-version marker and never the hardcoded editor URL in blueprint.json, so the preview stayed pinned. - Catch up blueprint.json to v4.0.1 (matches .editor-version). - Rewrite the blueprint's editor URL on every bump so the two stay in sync. --- .github/workflows/check-editor-releases.yml | 14 +++++++++++--- blueprint.json | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-editor-releases.yml b/.github/workflows/check-editor-releases.yml index 729e923..123a043 100644 --- a/.github/workflows/check-editor-releases.yml +++ b/.github/workflows/check-editor-releases.yml @@ -78,11 +78,19 @@ jobs: - name: Update editor version marker if: steps.check.outputs.found == 'true' run: | - echo "${{ steps.check.outputs.tag }}" > .editor-version + TAG="${{ steps.check.outputs.tag }}" + echo "$TAG" > .editor-version + # Keep the playground blueprint's editor URL in sync with .editor-version, + # otherwise the preview stays pinned to the hardcoded version. + sed -i -E \ + -e "s#(release=)v[0-9][0-9A-Za-z.-]*#\1$TAG#g" \ + -e "s#(releases/download/)v[0-9][0-9A-Za-z.-]*#\1$TAG#g" \ + -e "s#(exelearning-static-)v[0-9][0-9A-Za-z.-]*(\.zip)#\1$TAG\2#g" \ + blueprint.json git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - git add .editor-version - git commit -m "Update editor version to ${{ steps.check.outputs.tag }}" + git add .editor-version blueprint.json + git commit -m "Update editor version to $TAG" git push - name: Build Playground URL for this release diff --git a/blueprint.json b/blueprint.json index 150f156..e72364b 100644 --- a/blueprint.json +++ b/blueprint.json @@ -27,7 +27,7 @@ "path": "/tmp/exe-editor.zip", "data": { "resource": "url", - "url": "https://github-proxy.exelearning.dev/?repo=exelearning/exelearning&release=v4.0.0&asset=exelearning-static-v4.0.0.zip" + "url": "https://github-proxy.exelearning.dev/?repo=exelearning/exelearning&release=v4.0.1&asset=exelearning-static-v4.0.1.zip" } }, {