Skip to content

Commit 3f828ff

Browse files
authored
Update script-cleanup.yml
1 parent 2707646 commit 3f828ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/script-cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
# don't exit on errors in this block
3434
set +e
3535
36-
echo "Attempting to delete all resource groups except 'exec-docs-ai'..."
36+
echo "Attempting to delete all resource groups except 'exec-docs-ai' and those containing 'mcp'..."
3737
echo "$rgs_json" |
38-
jq -r '.[] | select(.name != "exec-docs-ai") | .name' |
38+
jq -r '.[] | select(.name != "exec-docs-ai" and (.name | contains("mcp") | not)) | .name' |
3939
while read -r rg_name; do
4040
if [[ -z "$rg_name" ]]; then
4141
echo "Skipping empty resource group name."

0 commit comments

Comments
 (0)