From d63c5071feb30c06df29474560f08c833f0d81fe Mon Sep 17 00:00:00 2001 From: Miriam Goldman Date: Tue, 30 Jul 2024 10:41:58 -0400 Subject: [PATCH] debug PR deletion --- .github/workflows/multidev-removal.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/multidev-removal.yml b/.github/workflows/multidev-removal.yml index c0d5a8fa..bda3546b 100644 --- a/.github/workflows/multidev-removal.yml +++ b/.github/workflows/multidev-removal.yml @@ -33,8 +33,12 @@ jobs: # Use the PR number as the environment name env=$(echo ${{ github.ref_name }} | sed 's|^\([0-9]*\)/.*|pr-\1|') + echo "Source is ${{ github.head_ref }}" + # Ensure environment name is 11 characters or less and has no special characters env="${env:0:11}" env=$(echo "$env" | sed 's/[^a-zA-Z0-9]/-/g') + echo "Deleting environment $env" + terminus env:delete ${{ vars.SITE_NAME }}.$env --delete-branch --yes \ No newline at end of file