Skip to content

Commit

Permalink
ci: Notify slack of codegen failures (#5273)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Dec 7, 2023
1 parent 1e4e84d commit 2790e61
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/actions/e2e/slack/notify/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ inputs:
suite:
description: "Suite that's running"
required: true
k8s_version:
description: "Kubernetes version that this test ran against"
url:
description: "Webhook URL to send the Slack notification to"
required: true
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codegen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ jobs:
issue_number: result.data.number,
labels: ['aws', 'dependencies']
});
- name: notify slack of success or failure
uses: ./.github/actions/e2e/slack/notify
if: (success() || failure())
with:
url: ${{ secrets.SLACK_WEBHOOK_URL }}
suite: codegen
1 change: 0 additions & 1 deletion .github/workflows/e2e-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ jobs:
with:
url: ${{ secrets.SLACK_WEBHOOK_URL }}
suite: Upgrade
k8s_version: ${{ inputs.k8s_version }}
git_ref: ${{ inputs.to_git_ref }}
- name: dump logs on failure
uses: ./.github/actions/e2e/dump-logs
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ jobs:
with:
url: ${{ secrets.SLACK_WEBHOOK_URL }}
suite: ${{ inputs.suite }}
k8s_version: ${{ inputs.k8s_version }}
git_ref: ${{ inputs.git_ref }}
- name: dump logs on failure
uses: ./.github/actions/e2e/dump-logs
Expand Down

0 comments on commit 2790e61

Please sign in to comment.