Skip to content

pr-close

pr-close #1

Workflow file for this run

name: pr-close
run-name: pr-close
on:
pull_request:
types:
- closed
jobs:
destroy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Remove the app
run: |
APP_ID=test-idp-${{ github.event.number }}
echo "${{ secrets.KUBECONFIG_PREVIEWS }}" >kubeconfig.yaml
export KUBECONFIG=$PWD/kubeconfig.yaml
kubectl delete namespace $APP_ID