From aa7e707a764ca63ba2b6b641f01ed9c23ec33bd8 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Mon, 16 Aug 2021 21:58:30 +0100 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ccc5a9d..b82a712d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,10 +44,21 @@ jobs: sudo -u netdisco /home/netdisco/bin/localenv perl ./Build.PL sudo -u netdisco /home/netdisco/bin/localenv ./Build test --test_files xt/ working-directory: /github/workspace/netdisco/netdisco - - name: IRC notification + - name: IRC failure notification uses: Gottox/irc-message-action@v2 + if: ${{ always() && failure() }} with: channel: '#netdisco' - nickname: netdisco-automation + nickname: github-actions message: |- - ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }} + ${{ github.actor }} pushed ${{ github.sha }} to ${{ steps.get_tag.outputs.TAGVALUE }} on ${{ github.repository }} + but the TESTS FAILED! 😭 + - name: IRC success notification + uses: Gottox/irc-message-action@v2 + if: ${{ always() && success() }} + with: + channel: '#netdisco' + nickname: github-actions + message: |- + ${{ github.actor }} pushed ${{ github.sha }} to ${{ steps.get_tag.outputs.TAGVALUE }} on ${{ github.repository }} + and the TESTS PASSED! 🎉