GHA: Test gen downloads page on Akamai

This commit is contained in:
aboyko
2023-11-09 23:01:33 -05:00
parent 14e534b08e
commit e15df1760a

View File

@@ -36,7 +36,17 @@ jobs:
echo '</ul>' >> $downloads_html
cat ./$downloads_html
aws s3 mv ./$downloads_html s3://tools-spring-io/snapshot/STS4/ --dryrun
aws s3 ls ${s3_url}
files=`aws s3 ls ${s3_url}`
for file in $files
do
echo "file: ${file}"
url="${s3_url}${file}"
echo "url: ${url}"
if [[ "$file" =~ ^"s3://tools-spring-io" ]]; then
download_url=https://cdn.spring.io/spring-tools${file:20}
filename=${file:${#s3_url}}
echo ' <li><a href="'${download_url}'">'${filename}'</li>' >> $downloads_html
fi
done