-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (34 loc) · 998 Bytes
/
php.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: PHP Composer
on:
release:
types: [published]
jobs:
notify:
needs: test
runs-on: ubuntu-latest
steps:
- uses: slackapi/[email protected]
with:
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":php: A new version of `php-onfleet` has been released: `${{ github.event.release.tag_name }}` :tada:"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "See details"
},
"url": "${{ github.event.release.html_url }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK