Skip to content

Commit a4ae51f

Browse files
updated code
1 parent 7d7b42e commit a4ae51f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
KEYVAULTS: ${{ steps.list_keyvaults.outputs.KEYVAULTS }}
2323
AZURE_LOCATION: ${{ steps.set_region.outputs.AZURE_LOCATION }}
2424
ENVIRONMENT_NAME: ${{ steps.generate_environment_name.outputs.ENVIRONMENT_NAME }}
25+
CREATED_BY: ${{ steps.set_created_by.outputs.CREATED_BY }} # ✅ NEW
2526

2627
steps:
2728
- name: Checkout Code
@@ -31,6 +32,11 @@ jobs:
3132
run: |
3233
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
3334
az --version # Verify installation
35+
- name: Set Created By
36+
id: set_created_by
37+
run: |
38+
echo "CREATED_BY=${{ github.actor }}" >> $GITHUB_ENV
39+
echo "CREATED_BY=${{ github.actor }}" >> $GITHUB_OUTPUT
3440
3541
- name: Login to Azure
3642
run: |
@@ -151,7 +157,7 @@ jobs:
151157
gptModelVersion="2024-08-06" \
152158
gptDeploymentCapacity="30" \
153159
aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \
154-
createdBy="${{ env.CREATED_BY }}" \
160+
createdBy="${{ env.CREATED_BY }}" \ # ✅ updated from Pipeline → actor
155161
--query "properties.outputs" -o json); then
156162
echo "❌ Deployment failed. See logs above."
157163
exit 1
@@ -293,7 +299,6 @@ jobs:
293299
KEYVAULTS: ${{ needs.deploy.outputs.KEYVAULTS }}
294300
AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }}
295301
ENVIRONMENT_NAME: ${{ needs.deploy.outputs.ENVIRONMENT_NAME }}
296-
CREATED_BY: ${{ needs.deploy.outputs.createdBy }}
297302
steps:
298303
- name: Setup Azure CLI
299304
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

0 commit comments

Comments
 (0)