From ccd2d84372d2521a58232bed1bb1c15abf4816c8 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 26 Jun 2023 17:31:40 +0300 Subject: [PATCH 1/2] chore: return success if pr-cleanup.yaml faisl to find a PR image tag --- .github/workflows/pr-cleanup.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-cleanup.yaml b/.github/workflows/pr-cleanup.yaml index 5b8615ce64663..d61a3a9306f60 100644 --- a/.github/workflows/pr-cleanup.yaml +++ b/.github/workflows/pr-cleanup.yaml @@ -25,6 +25,7 @@ jobs: fi - name: Delete image + continue-on-error: true uses: bots-house/ghcr-delete-image-action@v1.1.0 with: owner: coder From 145839e907a0ec1780bf07eb52958b66744ab5e3 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 26 Jun 2023 17:37:29 +0300 Subject: [PATCH 2/2] Update pr-cleanup.yaml --- .github/workflows/pr-cleanup.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/pr-cleanup.yaml b/.github/workflows/pr-cleanup.yaml index d61a3a9306f60..88f522204a6fe 100644 --- a/.github/workflows/pr-cleanup.yaml +++ b/.github/workflows/pr-cleanup.yaml @@ -34,7 +34,6 @@ jobs: tag: pr${{ steps.pr_number.outputs.PR_NUMBER }} - name: Set up kubeconfig - if: always() run: | set -euxo pipefail mkdir -p ~/.kube @@ -42,12 +41,10 @@ jobs: export KUBECONFIG=~/.kube/config - name: Delete helm release - if: always() run: | set -euxo pipefail helm delete --namespace "pr${{ steps.pr_number.outputs.PR_NUMBER }}" "pr${{ steps.pr_number.outputs.PR_NUMBER }}" || echo "helm release not found" - name: "Remove PR namespace" - if: always() run: | kubectl delete namespace "pr${{ steps.pr_number.outputs.PR_NUMBER }}" || echo "namespace not found"