Skip to content

Commit b244cf7

Browse files
committed
ADd slack notificaiton
1 parent fb8eb20 commit b244cf7

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,20 @@ jobs:
1919
- name: Run Composer Install
2020
run: composer install --no-interaction
2121
- name: Run Tests
22-
run: vendor/bin/phpunit --testdox tests
22+
run: vendor/bin/phpunit --testdox tests
23+
- name: Slack Message
24+
if: startsWith(github.ref, 'refs/tags/')
25+
uses: dgoemans/slack-action@1.0.1
26+
env:
27+
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
28+
with:
29+
title: ${{ github.workflow }}
30+
title_link: "https://github.com/${{ github.repository }}"
31+
channel: "releases"
32+
text: |
33+
Release *PHP Module* :tada:
34+
Version: *<https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}|${{ github.event.release.tag_name }}>*
35+
${{ github.event.release.name }}
36+
37+
*Release notes:*
38+
${{ github.event.release.body }}

0 commit comments

Comments
 (0)