Skip to content

Commit 0f60606

Browse files
committed
fix: only run az fnapp deploy on PR merged
1 parent 737cba3 commit 0f60606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/az_fnapp_deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: "Azure: Build & Deploy Function App"
99
runs-on: [self-hosted, "${{ github.event.pull_request.base.ref }}"]
1010
environment: ${{ github.event.pull_request.base.ref }}
11-
if: ${{ vars.TF_DESTROY != '-destroy' }}
11+
if: ${{ vars.TF_DESTROY != '-destroy' && github.event.pull_request.merged }}
1212
env:
1313
AZURE_FUNCTIONAPP_NAME: ${{ vars.AZURE_FUNCTIONAPP_NAME }}
1414
AZURE_FUNCTIONAPP_PACKAGE_PATH: ${{ vars.AZURE_FUNCTIONAPP_PACKAGE_PATH }}

0 commit comments

Comments
 (0)