Skip to content

Commit

Permalink
CI: optimize notification steps (#26486)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Bulychev <[email protected]>
  • Loading branch information
iBat and Alexander Bulychev authored Jan 25, 2024
1 parent ebc8c7a commit 6cab2de
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/devextreme_npm_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
- build
- test_bundlers
- test_demos
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -228,4 +228,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ jobs:
runs-on: devextreme-shr2
name: Send notifications
needs: [Renovation, TS, JS, CSS, texts, package_lock, component_exports]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -277,4 +277,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
runs-on: devextreme-shr2
name: Send notifications
needs: [checks]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -48,4 +48,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/qunit_tests-additional-renovation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ jobs:
qunit-tests-firefox,
qunit-tests-no-csp
]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -259,4 +259,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/qunit_tests-renovation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
runs-on: devextreme-shr2
name: Send notifications
needs: [build, qunit-tests]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -87,4 +87,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/renovation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: devextreme-shr2
name: Send notifications
needs: [jest-tests]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -58,4 +58,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/styles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
runs-on: devextreme-shr2
name: Send notifications
needs: [Tests]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -51,4 +51,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/testcafe_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
runs-on: devextreme-shr2
name: Send notifications
needs: [build, testcafe]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -181,4 +181,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/themebuilder_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
runs-on: devextreme-shr2
name: Send notifications
needs: [test]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -61,4 +61,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1
3 changes: 1 addition & 2 deletions .github/workflows/ts_declarations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
runs-on: devextreme-shr2
name: Send notifications
needs: [check-ts-bundle, validate-declarations, check-ts-compilation]
if: always() && contains(needs.*.result, 'failure')
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')

steps:
- uses: actions/checkout@v4
Expand All @@ -118,4 +118,3 @@ jobs:
hook_url: ${{secrets.TEAMS_ALERT}}
bearer_token: ${{secrets.GITHUB_TOKEN}}
specific_repo: DevExpress/DevExtreme
specific_branch: 24_1

0 comments on commit 6cab2de

Please sign in to comment.