Skip to content

Commit 2410e99

Browse files
RG Deployment Name Format updated
1 parent 4ca0bb5 commit 2410e99

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ jobs:
7474
id: generate_rg_name
7575
run: |
7676
echo "Generating a unique resource group name..."
77-
TIMESTAMP=$(date +%Y%m%d%H%M)
78-
# Define the common part and add a "cps-" prefix
79-
COMMON_PART="automation"
80-
UNIQUE_RG_NAME="cps-${COMMON_PART}${TIMESTAMP}"
77+
ACCL_NAME="cpc-automation" # Account name as specified
78+
SHORT_UUID=$(uuidgen | cut -d'-' -f1)
79+
UNIQUE_RG_NAME="arg-${ACCL_NAME}-${SHORT_UUID}"
8180
echo "RESOURCE_GROUP_NAME=${UNIQUE_RG_NAME}" >> $GITHUB_ENV
8281
echo "Generated Resource_GROUP_PREFIX: ${UNIQUE_RG_NAME}"
8382

0 commit comments

Comments
 (0)