Skip to content

Commit a5a5150

Browse files
authored
feat(ci): notify on push to main (#23)
1 parent 0e1edb7 commit a5a5150

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/notify-on-push.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Notify on Push
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
notify_on_push:
12+
name: Notify on any direct push to `main`
13+
if: >
14+
github.repository == 'nodejs/web-team' &&
15+
github.actor != 'github-merge-queue[bot]'
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
- uses: ./actions/notify-on-push
20+
with:
21+
webhook: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)