CI: one more with shorter notifications

This commit is contained in:
Adriaan de Groot 2021-02-01 14:25:02 +01:00
parent 5643c5cdc7
commit 9af44a3c8d
2 changed files with 14 additions and 8 deletions

View File

@ -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"

View File

@ -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: