From e05697d999b25d5ed18a71a1ccbd0dc460a02145 Mon Sep 17 00:00:00 2001 From: John Howe <89397553+timerring@users.noreply.github.com> Date: Fri, 30 May 2025 14:26:29 +0800 Subject: [PATCH] fix: skip no context --- .github/workflows/deploy-circleci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-circleci.yml b/.github/workflows/deploy-circleci.yml index 5199ed9..009527b 100644 --- a/.github/workflows/deploy-circleci.yml +++ b/.github/workflows/deploy-circleci.yml @@ -20,9 +20,13 @@ jobs: run: | circleci setup --no-prompt --host=https://circleci.com --token=${{ secrets.CIRCLECI_TOKEN }} - - name: Delete CircleCI Context + - name: Check and Delete CircleCI Context run: | - circleci context delete --org-id ${{ secrets.CIRCLECI_ORG_ID }} checkincontext --force + if circleci context list --org-id ${{ secrets.CIRCLECI_ORG_ID }} | grep -q "checkincontext"; then + circleci context delete --org-id ${{ secrets.CIRCLECI_ORG_ID }} checkincontext --force + else + echo "Context does not exist, skipping deletion" + fi - name: Create CircleCI Context run: |