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" } }, {