Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Scheduled Jobs: Bucket Cleanup #1139

Scheduled Jobs: Bucket Cleanup

Scheduled Jobs: Bucket Cleanup #1139

name: "Scheduled Jobs: Bucket Cleanup"
on:
schedule:
# Daily at 3:00PM UTC
- cron: 0 15 * * *
jobs:
cleanup:
name: Find and remove buckets
runs-on: ubuntu-latest
steps:
- name: Check out branch
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: "18.x"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
role-session-name: BucketCleanupSession
- name: Find and remove buckets
run: make ci-scheduled
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
SLACK_ACCESS_TOKEN: ${{ secrets.SLACK_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}