This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
docs: add blog post Next-level IaC: Pulumi Automation API and API Economy #3127
This file contains 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: 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 }} |