51
51
CLOUDFLARE_CACHE_TOKEN : ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
52
52
run : |
53
53
echo "S3 Aggregate Update Sites Creation..."
54
- dirs=`aws s3 ls s3://${AWS_S3_BUCKET}/release/TOOLS/sts4/ update/${{ inputs.version }}/`
54
+ dirs=`aws s3 ls s3://${AWS_S3_BUCKET}/release/update/${{ inputs.version }}/`
55
55
echo "${dirs}"
56
56
pattern='^e[0-9]+.[0-9]+/$'
57
57
invalid_urls=""
@@ -60,25 +60,25 @@ jobs:
60
60
if [[ "$dir" =~ $pattern ]]; then
61
61
echo "Found ${dir}"
62
62
dir_name=${dir:0:-1}
63
- site_url="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/ update/${{ inputs.version }}/${dir_name}"
63
+ site_url="${DOWNLOAD_URL_ROOT}/release/update/${{ inputs.version }}/${dir_name}"
64
64
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url $dir_name
65
65
cat ./compositeArtifacts.xml
66
66
cat ./compositeContent.xml
67
67
if [[ ${dir_name} == ${{ inputs.latest }} ]]; then
68
- aws s3 cp ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/ update/latest/ --checksum-algorithm CRC32
69
- invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/ update/latest/compositeArtifacts.xml "
70
- aws s3 cp ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/ update/latest/ --checksum-algorithm CRC32
71
- invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/ update/latest/compositeContent.xml "
72
- aws s3 cp ./p2.index s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/ update/latest/ --checksum-algorithm CRC32
73
- invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/ update/latest/p2.index "
68
+ aws s3 cp ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
69
+ invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/compositeArtifacts.xml "
70
+ aws s3 cp ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
71
+ invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/compositeContent.xml "
72
+ aws s3 cp ./p2.index s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
73
+ invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/p2.index "
74
74
echo "TODO: Purge Cache"
75
75
fi
76
- aws s3 mv ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/ update/${dir} --checksum-algorithm CRC32
77
- invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/ update/${dir_name}/compositeArtifacts.xml "
78
- aws s3 mv ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/ update/${dir} --checksum-algorithm CRC32
79
- invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/ update/${dir_name}/compositeContent.xml "
80
- aws s3 mv ./p2.index s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/ update/${dir} --checksum-algorithm CRC32
81
- invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/ update/${dir_name}/p2.index "
76
+ aws s3 mv ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
77
+ invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/compositeArtifacts.xml "
78
+ aws s3 mv ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
79
+ invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/compositeContent.xml "
80
+ aws s3 mv ./p2.index s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
81
+ invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/p2.index "
82
82
fi
83
83
done
84
84
echo "invalid_urls=$invalid_urls" >> $GITHUB_OUTPUT
0 commit comments