Update sandbox #107
Workflow file for this run
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: Delete PR | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
delete-pr-subns: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
pull-requests: read | |
steps: | |
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b | |
- uses: unfor19/install-aws-cli-action@v1 | |
with: | |
version: 2 | |
- name: Install kubectl | |
uses: azure/setup-kubectl@901a10e89ea615cf61f57ac05cecdf23e7de06d8 #v3.2 | |
with: | |
version: "v1.25.6" | |
- name: Configure AWS credentials for deployment | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.DEPLOY_PR_IAM_ROLE }} | |
aws-region: eu-west-2 | |
- name: Delete PR | |
run: | | |
aws eks update-kubeconfig --name ${{ secrets.CLUSTER_NAME }} \ | |
--alias ${{ secrets.CLUSTER_NAME }} \ | |
--region eu-west-2 | |
kubectl delete subns radix-dapp-toolkit-pr-${{ github.event.number }} -n radix-dapp-toolkit-ci-pr |