Skip to content

Commit b76d1b0

Browse files
committed
fix: bypass cleanup if not required, adhere to rate-limit
1 parent 59d95a1 commit b76d1b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/azure-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
uses: azure/CLI@v1
4242
with:
4343
inlineScript: |
44-
az group list --query "[?contains(name, 'sls-wus-dev')].name" -o tsv | xargs -P 10 -n1 az group delete --yes --name
44+
az group list --query "[?contains(name, 'sls-wus-dev')].name" -o tsv | xargs -r -P 10 -n1 az group delete --yes --name

.github/workflows/gcr-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
version: ">= 363.0.0"
4545

4646
- name: gcloud CLI Cleanup
47-
run: gcloud run services list --format="table[no-heading](name)" | xargs -P 10 -n1 gcloud run services delete --region us-west1 --quiet
47+
run: gcloud run services list --format="table[no-heading](name)" | xargs -r -P 10 -n1 bash -c 'gcloud run services delete --region us-west1 --quiet "$0"; sleep 10'

0 commit comments

Comments
 (0)