Repository navigation
Import the class of an @instanceOf type that has @module #572
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Playground Preview Cleanup | ||
|
Check warning on line 1 in .github/workflows/playground_preview_cleanup.yml
|
||
| on: | ||
| pull_request_target: | ||
| branches: [master] | ||
| types: [closed] | ||
| jobs: | ||
| cleanup: | ||
| if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||
| runs-on: ubuntu-26.04 | ||
| steps: | ||
| - name: Setup Rclone | ||
| uses: cometkim/rclone-actions/setup-rclone@8d9c6b95341f7698609deee65c3d62af42893288 # main, 2025-06-18 | ||
| - name: Configure Rclone remote | ||
| uses: cometkim/rclone-actions/configure-remote/s3-provider@8d9c6b95341f7698609deee65c3d62af42893288 # main, 2025-06-18 | ||
| with: | ||
| name: rescript | ||
| provider: Cloudflare | ||
| endpoint: https://${{ vars.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com | ||
| access-key-id: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }} | ||
| secret-access-key: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }} | ||
| acl: private | ||
| - name: Delete preview bundle | ||
| continue-on-error: true | ||
| run: rclone purge "rescript:cdn-assets/dev-playground-bundles/pr-${{ github.event.pull_request.number }}" | ||