-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f8298e
commit 4b7f92e
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}" | ||
|