Skip to content

Commit 10105d8

Browse files
use the action for rich message
1 parent bb0c56b commit 10105d8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/auto-simple-suite.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ jobs:
3636
path: playwright-report/
3737
retention-days: 7
3838

39-
- name: Post to Slack
40-
env:
41-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
42-
run: |
43-
curl -X POST -H 'Content-type: application/json' \
44-
--data '{"text":"Simple suite results are ready"}' \
45-
$SLACK_WEBHOOK_URL
39+
post-slack-notification-started:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Post a message in a channel
43+
uses: slackapi/slack-github-action@v2.1.1
44+
with:
45+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
46+
webhook-type: incoming-webhook
47+
payload: |
48+
text: "Simple suite pipeline started"

0 commit comments

Comments
 (0)