name: Clear S3 Cache for path on: workflow_dispatch: inputs: path: description: Path in the S3 bucket dist.springsource.com without leading slash required: true type: string jobs: clear-s3-cache: runs-on: macos-latest steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 with: ref: ${{ inputs.ref }} sparse-checkout: | .github - name: Cloudgate S3 Configuration uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a with: aws-access-key-id: ${{ secrets.TOOLS_CLOUDGATE_ACCESS_KEY }} aws-secret-access-key: ${{ secrets.TOOLS_CLOUDGATE_SECRET_KEY }} role-to-assume: arn:aws:iam::${{ secrets.TOOLS_CLOUDGATE_ACCOUNT_ID }}:role/${{ secrets.TOOLS_CLOUDGATE_USER }} role-session-name: ${{ github.run_id }} aws-region: us-east-1 role-duration-seconds: 900 role-skip-session-tagging: true - name: Invalidate S3 Cloudfront Cache env: CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }} CLOUDFLARE_CACHE_TOKEN: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }} run: | ${{ github.workspace }}/.github/scripts/clear-s3-caches.sh ${{ inputs.path }}