File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : Aggregate Distro Update Sites
2
2
3
3
on :
4
- workflow_dispatch :
4
+ workflow_call :
5
5
inputs :
6
6
version :
7
7
description : Version suffix in S3 (i.e. 4.19.1.RELEASE)
60
60
fi
61
61
cat ./compositeArtifacts.xml
62
62
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 "
63
78
fi
64
79
done
80
+ echo "invalid_urls=$invalid_urls" >> $GITHUB_OUTPUT
65
81
66
82
purge_cache :
67
83
needs : [ update-aggregate-update-sites ]
You can’t perform that action at this time.
0 commit comments