[smuxi: 30/37] GitHub-CI: add IRC notifier




commit dbe7e72c1cfaa66be71cf6182a0d90adc6172022
Author: Mirco Bauer <meebey meebey net>
Date:   Sun Jan 3 13:59:24 2021 +0800

    GitHub-CI: add IRC notifier

 .github/workflows/notify-irc.yml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
---
diff --git a/.github/workflows/notify-irc.yml b/.github/workflows/notify-irc.yml
new file mode 100644
index 00000000..cc800b3b
--- /dev/null
+++ b/.github/workflows/notify-irc.yml
@@ -0,0 +1,35 @@
+name: Notify IRC
+on:
+  - push
+  - pull_request
+  - create
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    steps:
+      - name: irc push
+        uses: rectalogic/notify-irc@v1
+        if: github.event_name == 'push'
+        with:
+          channel: "#smuxi-devel"
+          nickname: smuxi-github-notifier
+          message: |
+            ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
+            ${{ join(github.event.commits.*.message) }}
+      - name: irc pull request
+        uses: rectalogic/notify-irc@v1
+        if: github.event_name == 'pull_request'
+        with:
+          channel: "#smuxi-devel"
+          nickname: smuxi-github-notifier
+          message: |
+            ${{ github.actor }} opened PR ${{ github.event.html_url }}
+      - name: irc tag created
+        uses: rectalogic/notify-irc@v1
+        if: github.event_name == 'create' && github.event.ref_type == 'tag'
+        with:
+          channel: "#smuxi-devel"
+          nickname: smuxi-github-notifier
+          message: |
+            ${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]