Skip to content

Commit

Permalink
Merge pull request #3 from miriamgoldman/multidev-deletion
Browse files Browse the repository at this point in the history
debug PR deletion
  • Loading branch information
miriamgoldman authored Jul 30, 2024
2 parents 901644d + d63c507 commit a13c144
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/multidev-removal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a13c144

Please sign in to comment.