From 7423cc03ac2818e8fd6a57bd73c5a04994e32e79 Mon Sep 17 00:00:00 2001 From: Swopnil Dangol Date: Thu, 4 Sep 2025 12:25:26 +0100 Subject: [PATCH] Revert the env.VERSION and env.ALIAS changes which affected the version in the docs --- .github/workflows/reusable_publish_docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable_publish_docs.yml b/.github/workflows/reusable_publish_docs.yml index 86ba8bffda..c2e282b070 100644 --- a/.github/workflows/reusable_publish_docs.yml +++ b/.github/workflows/reusable_publish_docs.yml @@ -132,8 +132,8 @@ jobs: aws s3 cp \ s3://$AWS_DOCS_BUCKET/lambda-typescript/versions.json \ versions_old.json - jq 'del(.[].aliases[] | select(. == "$ALIAS"))' < versions_old.json > versions_proc.json - jq '. as $o | [{"title": "$VERSION", "version": "$VERSION", "aliases": ["$ALIAS"] }] as $n | $n | if .[0].title | test("[a-z]+") or any($o[].title == $n[0].title;.) then [($o | .[] | select(.title == $n[0].title).aliases += $n[0].aliases | . )] else $n + $o end' < versions_proc.json > versions.json + jq 'del(.[].aliases[] | select(. == "${{ env.ALIAS }}"))' < versions_old.json > versions_proc.json + jq '. as $o | [{"title": "${{ env.VERSION }}", "version": "${{ env.VERSION }}", "aliases": ["${{ env.ALIAS }}"] }] as $n | $n | if .[0].title | test("[a-z]+") or any($o[].title == $n[0].title;.) then [($o | .[] | select(.title == $n[0].title).aliases += $n[0].aliases | . )] else $n + $o end' < versions_proc.json > versions.json aws s3 cp \ versions.json \ s3://$AWS_DOCS_BUCKET/lambda-typescript/versions.json