aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorEnno Boland <gottox@voidlinux.org>2019-12-19 22:00:30 +0000
committerEnno Boland <gottox@voidlinux.org>2019-12-19 22:01:07 +0000
commit87319512a656ae3ba3d555f726d3464a57bb1ccc (patch)
tree6605f5651b331c12cb8fbb02c83329e158986722 /.github/workflows
parenteda74baaaad1f1ba67b6b61072482be6d3960b30 (diff)
downloadvoid-packages-87319512a656ae3ba3d555f726d3464a57bb1ccc.tar
void-packages-87319512a656ae3ba3d555f726d3464a57bb1ccc.tar.gz
void-packages-87319512a656ae3ba3d555f726d3464a57bb1ccc.tar.bz2
void-packages-87319512a656ae3ba3d555f726d3464a57bb1ccc.tar.lz
void-packages-87319512a656ae3ba3d555f726d3464a57bb1ccc.tar.xz
void-packages-87319512a656ae3ba3d555f726d3464a57bb1ccc.tar.zst
void-packages-87319512a656ae3ba3d555f726d3464a57bb1ccc.zip
.github/workflows: use a dedicated workflow for each event
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/notify-irc.yaml44
-rw-r--r--.github/workflows/notify-issue.yaml24
-rw-r--r--.github/workflows/notify-pr.yaml24
-rw-r--r--.github/workflows/notify-push.yaml23
4 files changed, 71 insertions, 44 deletions
diff --git a/.github/workflows/notify-irc.yaml b/.github/workflows/notify-irc.yaml
deleted file mode 100644
index 75f6eb235ec..00000000000
--- a/.github/workflows/notify-irc.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-name: "Push Notification"
-on:
- push:
- branches: [master]
- pull_request:
- types: [opened, closed]
- issues:
- types: [opened, closed]
-
-jobs:
- ircnotify:
- runs-on: ubuntu-latest
- timeout-minutes: 3
- steps:
- - name: irc push
- uses: Gottox/irc-message-action@master
- if: github.event_name == 'push' && github.repository == 'void-linux/void-packages'
- with:
- notice: true
- channel: "#xbps"
- nickname: void-packages
- sasl_password: ${{ secrets.freenode_password_void_packages }}
- tls: true
- message: "${{ github.actor }} pushed ${{ github.event.compare }}"
- - name: irc pull request
- uses: Gottox/irc-message-action@master
- if: github.event_name == 'pull_request' && github.repository == 'void-linux/void-packages'
- with:
- notice: true
- channel: "#xbps"
- nickname: void-packages
- sasl_password: ${{ secrets.freenode_password_void_packages }}
- tls: true
- message: "${{ github.actor }} ${{ github.event.action }} pull request “${{ github.event.pull_request.title }}” ${{ github.event.pull_request.html_url }}"
- - name: irc issue
- uses: Gottox/irc-message-action@master
- if: github.event_name == 'issues' && github.repository == 'void-linux/void-packages'
- with:
- notice: true
- channel: "#xbps"
- nickname: void-packages
- sasl_password: ${{ secrets.freenode_password_void_packages }}
- tls: true
- message: "${{ github.actor }} ${{ github.event.action }} issue “${{ github.event.issue.title }}” ${{ github.event.issue.html_url }}"
diff --git a/.github/workflows/notify-issue.yaml b/.github/workflows/notify-issue.yaml
new file mode 100644
index 00000000000..b7f999d47bc
--- /dev/null
+++ b/.github/workflows/notify-issue.yaml
@@ -0,0 +1,24 @@
+name: "Issue Notification"
+on:
+ issues:
+ types: [opened, closed]
+
+jobs:
+ ircnotify:
+ runs-on: ubuntu-latest
+ timeout-minutes: 3
+ steps:
+ - name: "Issue Notification"
+ uses: Gottox/irc-message-action@master
+ if: github.repository == 'void-linux/void-packages'
+ with:
+ notice: true
+ channel: "#xbps"
+ nickname: void-packages
+ sasl_password: ${{ secrets.freenode_password_void_packages }}
+ tls: true
+ message: >-
+ ${{ github.actor }}
+ ${{ github.event.action }} issue
+ “${{ github.event.issue.title }}”
+ ${{ github.event.issue.html_url }}
diff --git a/.github/workflows/notify-pr.yaml b/.github/workflows/notify-pr.yaml
new file mode 100644
index 00000000000..acbccc85f7e
--- /dev/null
+++ b/.github/workflows/notify-pr.yaml
@@ -0,0 +1,24 @@
+name: "Pull Request Notification"
+on:
+ pull_request:
+ types: [opened, closed]
+
+jobs:
+ ircnotify:
+ runs-on: ubuntu-latest
+ timeout-minutes: 3
+ steps:
+ - name: "Pull Request Notification"
+ uses: Gottox/irc-message-action@master
+ if: github.repository == 'void-linux/void-packages'
+ with:
+ notice: true
+ channel: "#xbps"
+ nickname: void-packages
+ sasl_password: ${{ secrets.freenode_password_void_packages }}
+ tls: true
+ message: >-
+ ${{ github.actor }}
+ ${{ github.event.action }} pull request
+ “${{ github.event.pull_request.title }}”
+ ${{ github.event.pull_request.html_url }}
diff --git a/.github/workflows/notify-push.yaml b/.github/workflows/notify-push.yaml
new file mode 100644
index 00000000000..9be0d2a87df
--- /dev/null
+++ b/.github/workflows/notify-push.yaml
@@ -0,0 +1,23 @@
+name: "Push Notification"
+on:
+ push:
+ branches: [master]
+
+jobs:
+ ircnotify:
+ runs-on: ubuntu-latest
+ timeout-minutes: 3
+ steps:
+ - name: "Push Notification"
+ uses: Gottox/irc-message-action@master
+ if: github.repository == 'void-linux/void-packages'
+ with:
+ notice: true
+ channel: "#xbps"
+ nickname: void-packages
+ sasl_password: ${{ secrets.freenode_password_void_packages }}
+ tls: true
+ message: >-
+ ${{ github.actor }}
+ pushed
+ ${{ github.event.compare }}"