Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/deploy-circleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down