Files
spring-tools/.github/workflows/update-aggregate-update-sites.yml
2023-08-02 10:29:35 -04:00

37 lines
1.1 KiB
YAML

name: Update Aggregate Update Sites
on:
workflow_dispatch:
inputs:
version:
description: Version suffix in S3
required: true
type: string
jobs:
update-aggregate-update-sites:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
sparse-checkout: |
.github
- name: Generate and Upload Aggregate Update Sites Data
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TOOLS_S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TOOLS_S3_SECRET_KEY }}
AWS_DEFAULT_REGION: us-east-1
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
CLOUDFLARE_CACHE_TOKEN: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
run: |
dirs=`aws s3 ls s3://dist.springsource.com/release/TOOLS/sts4/update/${{ inputs.version }}/`
for dir in $dirs
do
echo $dir
pattern='^e[0-9]\+.[0-9]\+/$'
if [[ "$dir" =~ $pattern ]]; then
echo "eDir ${dir}"
fi
done