.github/workflows: use a dedicated workflow for each event
This commit is contained in:
parent
eda74baaaa
commit
87319512a6
|
@ -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 }}"
|
|
|
@ -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 }}
|
|
@ -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 }}
|
|
@ -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 }}"
|
Loading…
Reference in New Issue