Skip to content

Commit bec9fdb

Browse files
commit
1 parent b193a5c commit bec9fdb

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/azd-template-validation.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20+
- name: Set timestamp
21+
shell: bash
22+
run: echo "HHMM=$(date -u +'%H%M')" >> "$GITHUB_ENV"
23+
2024
- name: Validate Azure Template
2125
uses: microsoft/template-validation-action@v0.4.3
2226
with:
@@ -28,7 +32,7 @@ jobs:
2832
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
2933
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
3034
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
31-
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
35+
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}-${{ env.HHMM }}
3236
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
3337
AZURE_ENV_OPENAI_LOCATION: ${{ secrets.AZURE_ENV_OPENAI_LOCATION }}
3438
AZURE_AI_MODEL_CAPACITY: 1

.github/workflows/azure-dev.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
- name: Checkout Code
2727
uses: actions/checkout@v4
2828

29+
- name: Set timestamp and env name
30+
shell: bash
31+
run: |
32+
HHMM=$(date -u +'%H%M')
33+
echo "AZURE_ENV_NAME=${AZURE_ENV_NAME}-${HHMM}" >> "$GITHUB_ENV"
34+
2935
- name: Install azd
3036
uses: Azure/setup-azd@v2
3137

0 commit comments

Comments
 (0)