File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,26 @@ jobs:
51
51
fi
52
52
53
53
54
+ - name : Generate Unique Solution Prefix
55
+ id : generate_solution_prefix
56
+ run : |
57
+ set -e
58
+ COMMON_PART="pslcod"
59
+ TIMESTAMP=$(date +%s)
60
+ UPDATED_TIMESTAMP=$(echo $TIMESTAMP | tail -c 3)
61
+ UNIQUE_SOLUTION_PREFIX="${COMMON_PART}${UPDATED_TIMESTAMP}"
62
+ echo "SOLUTION_PREFIX=${UNIQUE_SOLUTION_PREFIX}" >> $GITHUB_ENV
63
+ echo "Generated SOLUTION_PREFIX: ${UNIQUE_SOLUTION_PREFIX}"
64
+
65
+
54
66
- name : Deploy Bicep Template
55
67
id : deploy
56
68
run : |
57
69
set -e
58
70
az deployment group create \
59
71
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
60
72
--template-file infra/main.bicep \
61
- --parameters AzureAiServiceLocation=northcentralus Prefix=codegen
73
+ --parameters AzureAiServiceLocation=northcentralus Prefix=${{ env.SOLUTION_PREFIX }}
62
74
63
75
64
76
- name : Send Notification on Failure
You can’t perform that action at this time.
0 commit comments