Skip to content

Commit

Permalink
make e2e.yaml fail intentionally
Browse files Browse the repository at this point in the history
always notify on failure
  • Loading branch information
miampf committed Oct 10, 2024
1 parent c9efb67 commit c3e908a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
packages: write
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Fail
run: |
exit 1
- if: ${{ !inputs.self-hosted }}
uses: ./.github/actions/setup_nix
with:
Expand Down Expand Up @@ -85,7 +88,8 @@ 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' }}
if: ${{ failure() }}
uses: ./.github/actions/post_to_teams
with:
webhook: ${{ secrets.TEAMS_CI_WEBHOOK }}
Expand Down

0 comments on commit c3e908a

Please sign in to comment.