diff --git a/.github/workflows/develop_7_docs.yml b/.github/workflows/develop_7_docs.yml index 1d79586061..514ef133bd 100644 --- a/.github/workflows/develop_7_docs.yml +++ b/.github/workflows/develop_7_docs.yml @@ -61,7 +61,7 @@ jobs: - name: Add redirect for current major version pages to latest run: | - S3_BUCKET=`docs-${process.env.GITHUB_REF.replace("refs/heads/","").replace(/[/\s]/g, "-").replace(/[^0-9a-zA-Z-]/g, "").replace(/-$/g, "").toLowerCase()}.staging.tiny.cloud` + S3_BUCKET=$(node -e 'console.log(`docs-${process.env.GITHUB_REF.replace("refs/heads/","").replace(/[/\s]/g, "-").replace(/[^0-9a-zA-Z-]/g, "").replace(/-$/g, "").toLowerCase()}.staging.tiny.cloud`)') touch index.html aws s3api put-object --bucket ${S3_BUCKET} --key '/docs/tinymce/7/(.*)' --body index.html --website-redirect '/docs/tinymce/latest/$1' --acl public-read env: