Skip to content

Commit b7eaea0

Browse files
committed
use the same variable name as all the other web app deployment jobs
1 parent a0657f4 commit b7eaea0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-and-stage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,20 @@ jobs:
7878
if: ${{ github.event_name == 'pull_request' }}
7979
shell: pwsh
8080
run: |
81-
if (az webapp deployment slot list --resource-group ${{ vars.AZURE_RESOURCE_GROUP }} --name ${{ vars.AZURE_WWW_NAME}} | Select-String '"name": "${{ env.SLOT_NAME }}"')
81+
if (az webapp deployment slot list --resource-group ${{ vars.AZURE_RESOURCE_GROUP }} --name ${{ vars.AZURE_WEBAPP_NAME}} | Select-String '"name": "${{ env.SLOT_NAME }}"')
8282
{
8383
Write-Host "Staging slot already exists"
8484
}
8585
else
8686
{
87-
az webapp deployment slot create --resource-group ${{ vars.AZURE_RESOURCE_GROUP }} --name ${{ vars.AZURE_WWW_NAME}} --slot ${{ env.SLOT_NAME }} --configuration-source ${{ vars.STAGING_SLOT_NAME }}
87+
az webapp deployment slot create --resource-group ${{ vars.AZURE_RESOURCE_GROUP }} --name ${{ vars.AZURE_WEBAPP_NAME}} --slot ${{ env.SLOT_NAME }} --configuration-source ${{ vars.STAGING_SLOT_NAME }}
8888
}
8989
9090
- name: Deploy to Azure Web App
9191
id: deploy-to-webapp
9292
uses: azure/webapps-deploy@v3
9393
with:
94-
app-name: ${{ vars.AZURE_WWW_NAME }}
94+
app-name: ${{ vars.AZURE_WEBAPP_NAME }}
9595
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
9696
slot-name: ${{ env.SLOT_NAME }}
9797
clean: true
@@ -101,7 +101,7 @@ jobs:
101101
uses: mshick/add-pr-comment@v2
102102
with:
103103
message: |
104-
## Preview link: https://${{ vars.AZURE_WWW_NAME }}-${{ env.SLOT_NAME }}.azurewebsites.net
104+
## Preview link: https://${{ vars.AZURE_WEBAPP_NAME }}-${{ env.SLOT_NAME }}.azurewebsites.net
105105
106106
- Your changes have been deployed to the preview site. The preview site will update as you add more commits to this branch.
107107
- The preview link is shareable, but will be deleted when the pull request is merged or closed.

0 commit comments

Comments
 (0)