1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 08:47:36 +00:00

Meta: Use SerenityBot for IRC notifications

This avoids "useless" join/part notifications.
This commit is contained in:
Ben Wiederhake 2020-11-14 15:05:29 +01:00 committed by Andreas Kling
parent 80d1e12116
commit ef9ac8a8a2
2 changed files with 17 additions and 24 deletions

View file

@ -77,7 +77,6 @@ jobs:
run: DISABLE_DBG_OUTPUT=1 ./test-js
# === NOTIFICATIONS ===
# https://github.com/rectalogic/notify-irc
- name: Dump event info
if: always()
@ -87,25 +86,11 @@ jobs:
${{ toJSON(github.event) }}
EOF
- name: Generate IRC message
if: always()
id: ircmsg
# I really dislike putting so much logic here, but I can't come up with something better.
if: github.repository == 'SerenityOS/serenity' && !cancelled() && (github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master'))
run: |
${{ github.workspace }}/Meta/mangle_event_for_irc.py <<"EOF"
${{ github.workspace }}/Meta/notify_irc.py <<"EOF"
["${{ github.actor }}", ${{ github.run_id }}, "${{ job.status }}",
${{ toJSON(github.event) }}
]
EOF
- name: IRC result notification (direct push)
uses: rectalogic/notify-irc@v1
if: github.repository == 'SerenityOS/serenity' && github.ref == 'refs/heads/master' && github.event_name == 'push' && !cancelled() && steps.ircmsg.outputs.has_output == 'True'
with:
channel: "#serenityos"
nickname: serenity-ga
message: ${{ steps.ircmsg.outputs.the_line }}
- name: IRC result notification (PR)
uses: rectalogic/notify-irc@v1
if: github.repository == 'SerenityOS/serenity' && github.event_name == 'pull_request' && !cancelled() && steps.ircmsg.outputs.has_output
with:
channel: "#serenityos"
nickname: serenity-ga
message: ${{ steps.ircmsg.outputs.the_line }}