Skip to content

Commit

Permalink
Merge pull request #4 from miriamgoldman/pr-removals
Browse files Browse the repository at this point in the history
continue to try and get source head pr name
  • Loading branch information
miriamgoldman authored Jul 30, 2024
2 parents a13c144 + 5f8298e commit 75f326e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/multidev-removal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ jobs:
run: |
# 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 }}"
source=$(echo ${{ github.head_ref }} | sed 's|^\([0-9]*\)/.*|pr-\1|')
echo "Source is $source"
# 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 75f326e

Please sign in to comment.