File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,18 @@ 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"
49+ blocks:
50+ - type: "section"
51+ text:
52+ type: "mrkdwn"
53+ text: "Trigger: ${{ github.event_name }}"
You can’t perform that action at this time.
0 commit comments