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

Add workflow dispatch to scheduled cleanup action #3128

Add workflow dispatch to scheduled cleanup action

Add workflow dispatch to scheduled cleanup action #3128

name: Close pull request
on:
pull_request:
types:
- closed
jobs:
cleanup:
# Only run this job for events that originate on this repository.
if: github.event.pull_request.head.repo.full_name == github.repository
name: Find and remove buckets
runs-on: ubuntu-latest
steps:
- name: Check out branch
uses: actions/checkout@v2
- 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: PullRequestCleanupSession
- name: Find and remove buckets
run: make ci-pull-request-closed
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}