|
| 1 | +name: "IRC Notifications" |
| 2 | +on: |
| 3 | + create: |
| 4 | + pull_request: |
| 5 | + types: [opened, closed, reopened] |
| 6 | + issues: |
| 7 | + types: [opened, closed, reopened] |
| 8 | + push: |
| 9 | + branches: |
| 10 | + - 'master_disabled' |
| 11 | + - 'v0.5_disabled' |
| 12 | + |
| 13 | +jobs: |
| 14 | + test: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - name: irc push |
| 18 | + uses: rectalogic/notify-irc@v1 |
| 19 | + if: github.event_name == 'push' |
| 20 | + with: |
| 21 | + server: "irc.libera.chat" |
| 22 | + channel: "#labwc" |
| 23 | + nickname: "labwc" |
| 24 | + notice: true |
| 25 | + message: "[${{ github.event.ref }}] ${{ github.actor }} pushed new commits: ${{ github.event.compare }}" |
| 26 | + - name: irc issue opened |
| 27 | + uses: rectalogic/notify-irc@v1 |
| 28 | + if: github.event_name == 'issues' && github.event.action == 'opened' |
| 29 | + with: |
| 30 | + server: "irc.libera.chat" |
| 31 | + channel: "#labwc" |
| 32 | + nickname: "labwc" |
| 33 | + notice: true |
| 34 | + message: "${{ github.actor }} opened issue '${{ github.event.issue.title }}' (${{ github.event.issue.html_url }})" |
| 35 | + - name: irc issue reopened |
| 36 | + uses: rectalogic/notify-irc@v1 |
| 37 | + if: github.event_name == 'issues' && github.event.action == 'reopened' |
| 38 | + with: |
| 39 | + server: "irc.libera.chat" |
| 40 | + channel: "#labwc" |
| 41 | + nickname: "labwc" |
| 42 | + notice: true |
| 43 | + message: "${{ github.actor }} reopened issue: '${{ github.event.issue.title }}' (${{ github.event.issue.html_url }})" |
| 44 | + - name: irc issue closed |
| 45 | + uses: rectalogic/notify-irc@v1 |
| 46 | + if: github.event_name == 'issues' && github.event.action == 'closed' |
| 47 | + with: |
| 48 | + server: "irc.libera.chat" |
| 49 | + channel: "#labwc" |
| 50 | + nickname: "labwc" |
| 51 | + notice: true |
| 52 | + message: "${{ github.actor }} closed issue '${{ github.event.issue.title }}' (${{ github.event.issue.html_url }})" |
| 53 | + - name: irc pull request opened |
| 54 | + uses: rectalogic/notify-irc@v1 |
| 55 | + if: github.event_name == 'pull_request' && github.event.action == 'opened' |
| 56 | + with: |
| 57 | + server: "irc.libera.chat" |
| 58 | + channel: "#labwc" |
| 59 | + nickname: "labwc" |
| 60 | + notice: true |
| 61 | + message: "[${{ github.event.pull_request.base.ref }}] ${{ github.actor }} opened PR '${{ github.event.pull_request.title }}' (${{ github.event.pull_request.html_url }})" |
| 62 | + - name: irc pull request reopened |
| 63 | + uses: rectalogic/notify-irc@v1 |
| 64 | + if: github.event_name == 'pull_request' && github.event.action == 'reopened' |
| 65 | + with: |
| 66 | + server: "irc.libera.chat" |
| 67 | + channel: "#labwc" |
| 68 | + nickname: "labwc" |
| 69 | + notice: true |
| 70 | + message: "[${{ github.event.pull_request.base.ref }}] ${{ github.actor }} reopened PR '${{ github.event.pull_request.title }}' (${{ github.event.pull_request.html_url }})" |
| 71 | + - name: irc pull request merged |
| 72 | + uses: rectalogic/notify-irc@v1 |
| 73 | + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true |
| 74 | + with: |
| 75 | + server: "irc.libera.chat" |
| 76 | + channel: "#labwc" |
| 77 | + nickname: "labwc" |
| 78 | + notice: true |
| 79 | + message: "[${{ github.event.pull_request.base.ref }}] ${{ github.actor }} merged PR '${{ github.event.pull_request.title }}' (${{ github.event.pull_request.html_url }})" |
| 80 | + - name: irc pull request closed |
| 81 | + uses: rectalogic/notify-irc@v1 |
| 82 | + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == false |
| 83 | + with: |
| 84 | + server: "irc.libera.chat" |
| 85 | + channel: "#labwc" |
| 86 | + nickname: "labwc" |
| 87 | + notice: true |
| 88 | + message: "[${{ github.event.pull_request.base.ref }}] ${{ github.actor }} closed PR '${{ github.event.pull_request.title }}' (${{ github.event.pull_request.html_url }})" |
| 89 | + - name: irc tag created |
| 90 | + uses: rectalogic/notify-irc@v1 |
| 91 | + if: github.event_name == 'create' && github.event.ref_type == 'tag' |
| 92 | + with: |
| 93 | + server: "irc.libera.chat" |
| 94 | + channel: "#labwc" |
| 95 | + nickname: "labwc" |
| 96 | + notice: true |
| 97 | + message: "${{ github.actor }} tagged ${{ github.repository }}: ${{ github.event.ref }}" |
0 commit comments