Skip to content

Commit

Permalink
Merge pull request #7 from miriamgoldman/pr-removals
Browse files Browse the repository at this point in the history
commit code
  • Loading branch information
miriamgoldman authored Jul 30, 2024
2 parents e293399 + 58c5140 commit a3c5db2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/multidev-removal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,5 @@ jobs:
- name: Determine target environment and maybe delete it
run: |
# Use the PR number as the environment name
env=$(echo ${{ github.ref_name }} | sed 's|^\([0-9]*\)/.*|pr-\1|')
prnum="${{ github.event.pull_request.number }}"
echo "The PR num is $prnum"
# 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')
terminus env:delete ${{ vars.SITE_NAME }}.$env --delete-branch --yes
prnum="pr-${{ github.event.pull_request.number }}"
terminus env:delete ${{ vars.SITE_NAME }}.$prnum --delete-branch --yes

0 comments on commit a3c5db2

Please sign in to comment.