Skip to content

Commit 221e5f7

Browse files
committed
Test slack action via test workflow
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
1 parent 7a45b1b commit 221e5f7

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/test-slack.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test Slack Notification
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
status:
6+
description: 'Notification status to test'
7+
required: false
8+
type: choice
9+
options:
10+
- success
11+
- failure
12+
default: success
13+
14+
jobs:
15+
test-slack:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Send test Slack notification
20+
uses: ./.github/actions/notify-slack
21+
with:
22+
status: ${{ inputs.status }}
23+
workflow-name: Test Slack Notification
24+
cluster-name: test-cluster
25+
slack-webhook-urls: ${{ secrets.SLACK_WEBHOOK_URLS }}
26+
workflow-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
27+
branch-name: ${{ github.ref_name }}
28+
commit-sha: ${{ github.sha }}

0 commit comments

Comments
 (0)