Skip to content

Commit e0aaff6

Browse files
committed
[GHA] Finalize inclusion of JustJ into aggregate distro update sites
1 parent 1b74fcd commit e0aaff6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/aggregate-distro-update-sites.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Aggregate Distro Update Sites
22

33
on:
4-
workflow_dispatch:
4+
workflow_call:
55
inputs:
66
version:
77
description: Version suffix in S3 (i.e. 4.19.1.RELEASE)
@@ -60,8 +60,24 @@ jobs:
6060
fi
6161
cat ./compositeArtifacts.xml
6262
cat ./compositeContent.xml
63+
if [[ ${dir_name} == ${{ inputs.latest }} ]]; then
64+
aws s3 cp ./compositeArtifacts.xml s3://tools-spring-io/release/TOOLS/sts4/update/latest/
65+
invalid_urls+="https://cdn.spring.io/spring-tools/release/TOOLS/sts4/update/latest/compositeArtifacts.xml "
66+
aws s3 cp ./compositeContent.xml s3://tools-spring-io/release/TOOLS/sts4/update/latest/
67+
invalid_urls+="https://cdn.spring.io/spring-tools/release/TOOLS/sts4/update/latest/compositeContent.xml "
68+
aws s3 cp ./p2.index s3://tools-spring-io/release/TOOLS/sts4/update/latest/
69+
invalid_urls+="https://cdn.spring.io/spring-tools/release/TOOLS/sts4/update/latest/p2.index "
70+
echo "TODO: Purge Cache"
71+
fi
72+
aws s3 mv ./compositeArtifacts.xml s3://tools-spring-io/release/TOOLS/sts4/update/${dir}
73+
invalid_urls+="https://cdn.spring.io/spring-tools/release/TOOLS/sts4/update/${dir_name}/compositeArtifacts.xml "
74+
aws s3 mv ./compositeContent.xml s3://tools-spring-io/release/TOOLS/sts4/update/${dir}
75+
invalid_urls+="https://cdn.spring.io/spring-tools/release/TOOLS/sts4/update/${dir_name}/compositeContent.xml "
76+
aws s3 mv ./p2.index s3://tools-spring-io/release/TOOLS/sts4/update/${dir}
77+
invalid_urls+="https://cdn.spring.io/spring-tools/release/TOOLS/sts4/update/${dir_name}/p2.index "
6378
fi
6479
done
80+
echo "invalid_urls=$invalid_urls" >> $GITHUB_OUTPUT
6581
6682
purge_cache:
6783
needs: [ update-aggregate-update-sites ]

0 commit comments

Comments
 (0)