diff --git a/.github/workflows/multidev-removal.yml b/.github/workflows/multidev-removal.yml index 363b70c3..dd08bddf 100644 --- a/.github/workflows/multidev-removal.yml +++ b/.github/workflows/multidev-removal.yml @@ -32,8 +32,9 @@ jobs: 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="${{ 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}"