From 4b7f92e81d85ad0685c91e438021f48b4252edcd Mon Sep 17 00:00:00 2001 From: Miriam Goldman Date: Tue, 30 Jul 2024 11:28:01 -0400 Subject: [PATCH] try new action --- .github/workflows/multidev-removal.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/multidev-removal.yml b/.github/workflows/multidev-removal.yml index 363b70c3..d7fe5e7b 100644 --- a/.github/workflows/multidev-removal.yml +++ b/.github/workflows/multidev-removal.yml @@ -29,11 +29,13 @@ jobs: pantheon-machine-token: ${{ secrets.TERMINUS_TOKEN }} - name: Determine target environment and maybe delete it + uses: 8BitJonny/gh-get-current-pr@3.0.0 + 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}"