From 9af44a3c8d70293a4604d064889ce736c6c039a5 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 1 Feb 2021 14:25:02 +0100 Subject: [PATCH] CI: one more with shorter notifications --- .github/workflows/ci-neon.yml | 16 ++++++++++++---- .github/workflows/issues.yml | 6 ++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-neon.yml b/.github/workflows/ci-neon.yml index b255adebd..c7bf22f77 100644 --- a/.github/workflows/ci-neon.yml +++ b/.github/workflows/ci-neon.yml @@ -83,16 +83,24 @@ jobs: echo "$JOBS_CONTEXT" echo "EVENT" echo "$EVENT_CONTEXT" - - name: "notify" + - name: "notify: ok" uses: rectalogic/notify-irc@v1 - if: always() + if: ${{ success() }} + with: + server: chat.freenode.net + channel: "#calamares" + nickname: gh-notify + message: "CI OK for '${{ github.event.head_commit.message }}'" + - name: "notify: fail" + uses: rectalogic/notify-irc@v1 + if: ${{ failure() }} with: server: chat.freenode.net channel: "#calamares" nickname: gh-notify message: | - ${{ github.actor }} ${{ github.sha }} on ${{ github.ref }} - result ${{ job.status }} RUN ${{ github.run_id }} ${{ github.job }} + CI FAIL for '${{ github.event.head_commit.message }}' + .. DIFF ${{ github.event.compare }} # Unused while we figure out notifications. # - name: "Calamares: make" diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index d98230d91..9ceb5315c 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -8,8 +8,7 @@ jobs: irc: runs-on: ubuntu-latest steps: - - - name: notify-new + - name: "notify: new" uses: rectalogic/notify-irc@v1 if: github.event.issue.state == "open" with: @@ -17,8 +16,7 @@ jobs: channel: "#calamares" nickname: gh-issues message: "[${{ github.event.issue.title }}](${{ github.event.issue.url }}) opened by ${{ github.actor }}" - - - name: notify-closed + - name: "notify: closed" uses: rectalogic/notify-irc@v1 if: github.event.issue.state != "open" with: