Skip to content

Commit eba6add

Browse files
Update owner tag to Owner
1 parent dc9fd05 commit eba6add

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/job-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,16 +368,16 @@ jobs:
368368
if [ "$rg_exists" = "false" ]; then
369369
echo "📦 Resource group does not exist. Creating new resource group '$RESOURCE_GROUP_NAME' in location '$AZURE_LOCATION'..."
370370
RG_TAGS="${{ env.RG_TAGS }}"
371-
echo "🏷️ Adding owner tag: owner=${{ github.actor }}"
371+
echo "🏷️ Adding owner tag: Owner=${{ github.actor }}"
372372
if [ -n "$RG_TAGS" ]; then
373-
az group create --name $RESOURCE_GROUP_NAME --location $AZURE_LOCATION --tags $RG_TAGS "owner=${{ github.actor }}" || { echo "❌ Error creating resource group"; exit 1; }
373+
az group create --name $RESOURCE_GROUP_NAME --location $AZURE_LOCATION --tags $RG_TAGS "Owner=${{ github.actor }}" || { echo "❌ Error creating resource group"; exit 1; }
374374
else
375-
az group create --name $RESOURCE_GROUP_NAME --location $AZURE_LOCATION --tags "owner=${{ github.actor }}" || { echo "❌ Error creating resource group"; exit 1; }
375+
az group create --name $RESOURCE_GROUP_NAME --location $AZURE_LOCATION --tags "Owner=${{ github.actor }}" || { echo "❌ Error creating resource group"; exit 1; }
376376
fi
377377
echo "✅ Resource group '$RESOURCE_GROUP_NAME' created successfully."
378378
else
379-
echo "✅ Resource group '$RESOURCE_GROUP_NAME' already exists. Updating owner tag to '${{ github.actor }}'."
380-
az group update --name "$RESOURCE_GROUP_NAME" --set tags.owner="${{ github.actor }}" >/dev/null || echo "⚠️ Warning: failed to update owner tag on existing resource group."
379+
echo "✅ Resource group '$RESOURCE_GROUP_NAME' already exists. Updating Owner tag to '${{ github.actor }}'."
380+
az group update --name "$RESOURCE_GROUP_NAME" --set tags.Owner="${{ github.actor }}" >/dev/null || echo "⚠️ Warning: failed to update Owner tag on existing resource group."
381381
fi
382382
echo "RESOURCE_GROUP_NAME=$RESOURCE_GROUP_NAME" >> $GITHUB_OUTPUT
383383
echo "RESOURCE_GROUP_NAME=$RESOURCE_GROUP_NAME" >> $GITHUB_ENV

0 commit comments

Comments
 (0)