feat: add dashboard preview section #5
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: 'Cleanup Pull Request' | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
cleanup-pr: | |
name: "Cleanup Pull Request" | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
permissions: | |
contents: read | |
packages: write | |
actions: write | |
pull-requests: write | |
steps: | |
- name: Kubernetes login | |
uses: azure/k8s-set-context@v4 | |
with: | |
method: kubeconfig | |
kubeconfig: ${{ secrets.KUBE_CONFIG }} | |
- name: Delete Helm Chart | |
run: | | |
helm delete project-website-pr-${{ github.event.number }} --namespace project-website-pr-${{ github.event.number }} | |
- name: Delete Namespace | |
if: always() | |
run: | | |
kubectl delete namespace project-website-pr-${{ github.event.number }} |