Skip to content

Commit 1f67775

Browse files
Refactor workflow triggers and notification conditions in validate-bicep-params.yml
1 parent 4abbe20 commit 1f67775

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/validate-bicep-params.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ on:
1515
- 'infra/**/*.parameters.json'
1616
- 'Deployment/validate_bicep_params.py'
1717
workflow_dispatch:
18-
push:
19-
branches:
20-
- hb-psl-38859
2118

2219
env:
2320
accelerator_name: "DKM"
@@ -67,7 +64,7 @@ jobs:
6764
retention-days: 30
6865

6966
- name: Send schedule notification on failure
70-
if: steps.result.outputs.status == 'failure'
67+
if: github.event_name == 'schedule' && steps.result.outputs.status == 'failure'
7168
env:
7269
LOGICAPP_URL: ${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA }}
7370
GITHUB_REPOSITORY: ${{ github.repository }}
@@ -87,7 +84,7 @@ jobs:
8784
-d @- || echo "Failed to send notification"
8885
8986
- name: Send schedule notification on success
90-
if: steps.result.outputs.status == 'success'
87+
if: github.event_name == 'schedule' && steps.result.outputs.status == 'success'
9188
env:
9289
LOGICAPP_URL: ${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA }}
9390
GITHUB_REPOSITORY: ${{ github.repository }}

0 commit comments

Comments
 (0)