summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorScott <[email protected]>2019-11-14 22:01:11 +0000
committerGitHub <[email protected]>2019-11-14 22:01:11 +0000
commitfeeedd065d60cac6484625013095e0adae84c672 (patch)
tree2218753ac7684c94880b0d472451d3d785422add /.github/workflows
parentfa4b8fae5207a623d549b38de006ee3e7877e5c6 (diff)
Add Notify IRC Github Action
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 000000000..2dea46680
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,31 @@
+name: "Push Notification"
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Handle Commit
+ uses: rectalogic/notify-irc@v1
+ if: github.event_name == 'push'
+ with:
+ channel: "#handbrake"
+ nickname: handbrake-bot
+ server: chat.freenode.net
+ port: 6697
+ tls: true
+ message: |
+ ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
+ ${{ join(github.event.commits.*.message) }}
+
+ - name: Handle Pull Request
+ uses: rectalogic/notify-irc@v1
+ if: github.event_name == 'pull_request'
+ with:
+ channel: "#handbrake"
+ nickname: handbrake-bot
+ server: chat.freenode.net
+ port: 6697
+ tls: true
+ message: |
+ ${{ github.actor }} opened PR ${{ github.event.html_url }}