Skip to content

Commit

Permalink
try new action
Browse files Browse the repository at this point in the history
  • Loading branch information
miriamgoldman committed Jul 30, 2024
1 parent 5f8298e commit 4b7f92e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/multidev-removal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:
pantheon-machine-token: ${{ secrets.TERMINUS_TOKEN }}

- name: Determine target environment and maybe delete it
uses: 8BitJonny/[email protected]
id: PR
run: |
# Use the PR number as the environment name
env=$(echo ${{ github.ref_name }} | sed 's|^\([0-9]*\)/.*|pr-\1|')
source=$(echo ${{ github.head_ref }} | sed 's|^\([0-9]*\)/.*|pr-\1|')
echo "Source is $source"
prnum=$(echo ${{ steps.PR.outputs.number }}
echo "Source is $prnum"
# Ensure environment name is 11 characters or less and has no special characters
env="${env:0:11}"
Expand Down

0 comments on commit 4b7f92e

Please sign in to comment.