Skip to content

Commit

Permalink
use strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 committed May 29, 2024
1 parent 4af79b0 commit a6dbd0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/function_app_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:

- name: Deploy to Staging Slot
uses: azure/webapps-deploy@v2
if: ${{ env.USE_STAGING_SLOT }}
if: ${{ env.USE_STAGING_SLOT == 'true' }}
with:
resource-group-name: ${{ env.RESOURCE_GROUP_NAME }}
app-name: ${{ env.FUNCTION_APP_NAME }}
Expand All @@ -140,14 +140,14 @@ jobs:

- name: Deploy
uses: azure/webapps-deploy@v2
if: ${{ env.USE_STAGING_SLOT == false }}
if: ${{ env.USE_STAGING_SLOT == 'false' }}
with:
resource-group-name: ${{ env.RESOURCE_GROUP_NAME }}
app-name: ${{ env.FUNCTION_APP_NAME }}
package: ${{ env.BUNDLE_NAME }}.zip

- name: Ping Staging Health
if: ${{ env.USE_STAGING_SLOT }}
if: ${{ env.USE_STAGING_SLOT == 'true' }}
run: |
curl \
--retry 5 \
Expand All @@ -156,7 +156,7 @@ jobs:
-f 'https://${{ env.FUNCTION_APP_NAME }}-staging.azurewebsites.net${{ env.HEALTH_CHECK_PATH }}'
- name: Swap Staging and Production Slots
if: ${{ env.USE_STAGING_SLOT }}
if: ${{ env.USE_STAGING_SLOT == 'true' }}
run: |
az webapp deployment slot swap \
-g ${{ env.RESOURCE_GROUP_NAME }} \
Expand Down

0 comments on commit a6dbd0d

Please sign in to comment.