Skip to content

Commit b447596

Browse files
feat: update trigger
1 parent ad9483b commit b447596

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/notify.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Notify with Slack
2-
on: push
2+
on:
3+
pull_request:
4+
types: [opened, labeled]
5+
36
jobs:
47
notify:
58
runs-on: ubuntu-latest
9+
if: ${{ contains(github.event.pull_request.labels.*.name,'notify-slack') }}
610
steps:
711
- name: Post a message in a channel
812
uses: slackapi/slack-github-action@v2.1.1

0 commit comments

Comments
 (0)