Skip to content

Commit

Permalink
Update Azure Functions publish profile retrieval to output XML format
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj committed Jan 7, 2025
1 parent 6dbfd9c commit f445d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/azuredeploy.bicep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:
- name: Get Azure Functions Publish Profile
id: get-publish-profile
run: |
AZURE_FUNCTIONAPP_PUBLISH_PROFILE=$(az functionapp deployment list-publishing-profiles --name ${{ env.AZURE_FUNCTIONAPP_NAME }} --resource-group ${{ env.RESOURCE_GROUP_NAME }} --query "[?publishMethod=='MSDeploy'].{publishUrl:publishUrl,userName:userName,userPWD:userPWD}" -o tsv)
echo "AZURE_FUNCTIONAPP_PUBLISH_PROFILE=$AZURE_FUNCTIONAPP_PUBLISH_PROFILE" >> $GITHUB_ENV
az functionapp deployment list-publishing-profiles --name ${{ env.AZURE_FUNCTIONAPP_NAME }} --resource-group ${{ env.RESOURCE_GROUP_NAME }} --xml > publishProfile.xml
echo "AZURE_FUNCTIONAPP_PUBLISH_PROFILE=$(cat publishProfile.xml)" >> $GITHUB_ENV
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
Expand Down

0 comments on commit f445d90

Please sign in to comment.