diff --git a/.github/workflows/gen-nighly-downloads.yml b/.github/workflows/gen-nighly-downloads.yml index 0c6eb5ccf..9ee186075 100644 --- a/.github/workflows/gen-nighly-downloads.yml +++ b/.github/workflows/gen-nighly-downloads.yml @@ -36,7 +36,17 @@ jobs: echo '' >> $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 '
  • '${filename}'
  • ' >> $downloads_html + fi + done