From 7d54d9091b8c916ee143e123638e1428e4461361 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Fri, 18 Jul 2025 14:39:37 -0400 Subject: [PATCH] feat(ci): notify on push to main --- .github/workflows/notify-on-push.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/notify-on-push.yml diff --git a/.github/workflows/notify-on-push.yml b/.github/workflows/notify-on-push.yml new file mode 100644 index 0000000..41a13eb --- /dev/null +++ b/.github/workflows/notify-on-push.yml @@ -0,0 +1,21 @@ +on: + push: + branches: + - main + +name: Notify on Push +permissions: + contents: read + +jobs: + notify_on_push: + name: Notify on any direct push to `main` + if: > + github.repository == 'nodejs/web-team' && + github.actor != 'github-merge-queue[bot]' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: ./actions/notify-on-push + with: + webhook: ${{ secrets.SLACK_WEBHOOK }}