Skip to content

Commit

Permalink
ci: only notify teams on first failure
Browse files Browse the repository at this point in the history
  • Loading branch information
davidweisse committed Oct 29, 2024
1 parent 0362d8c commit d3511cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
name: e2e_pod_logs-${{ inputs.platform }}-${{ inputs.test-name }}
path: workspace/namespace-logs
- name: Notify teams channel of failure
if: ${{ failure() && github.event_name == 'schedule' }}
if: ${{ failure() && github.event_name == 'schedule' && github.run_attempt == 1 }}
uses: ./.github/actions/post_to_teams
with:
webhook: ${{ secrets.TEAMS_CI_WEBHOOK }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e_runtime-reproducibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
name: ${{ matrix.build-target }}-${{ matrix.os }}-rebuild
path: rebuild
- name: Notify teams channel of failure
if: ${{ failure() && github.ref == 'main' }}
if: ${{ failure() && github.ref == 'main' && github.run_attempt == 1 }}
uses: ./.github/actions/post_to_teams
with:
webhook: ${{ secrets.TEAMS_CI_WEBHOOK }}
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
print("All checksums were equal")
- name: Notify teams channel of failure
if: ${{ failure() && github.ref == 'main' }}
if: ${{ failure() && github.ref == 'main' && github.run_attempt == 1 }}
uses: ./.github/actions/post_to_teams
with:
webhook: ${{ secrets.TEAMS_CI_WEBHOOK }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rpm_updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
author: edgelessci <edgelessci@users.noreply.github.com>
token: ${{ secrets.NUNKI_CI_COMMIT_PUSH_PR }}
- name: Notify teams channel of failure
if: ${{ failure() && github.ref == 'main' }}
if: ${{ failure() && github.ref == 'main' && github.run_attempt == 1 }}
uses: ./.github/actions/post_to_teams
with:
webhook: ${{ secrets.TEAMS_CI_WEBHOOK }}
Expand Down

0 comments on commit d3511cf

Please sign in to comment.