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 "$JOBS_CONTEXT"
echo "EVENT" echo "EVENT"
echo "$EVENT_CONTEXT" echo "$EVENT_CONTEXT"
- name: "notify" - name: "notify: ok"
uses: rectalogic/notify-irc@v1 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: with:
server: chat.freenode.net server: chat.freenode.net
channel: "#calamares" channel: "#calamares"
nickname: gh-notify nickname: gh-notify
message: | message: |
${{ github.actor }} ${{ github.sha }} on ${{ github.ref }} CI FAIL for '${{ github.event.head_commit.message }}'
result ${{ job.status }} RUN ${{ github.run_id }} ${{ github.job }} .. DIFF ${{ github.event.compare }}
# Unused while we figure out notifications. # Unused while we figure out notifications.
# - name: "Calamares: make" # - name: "Calamares: make"

View File

@ -8,8 +8,7 @@ jobs:
irc: irc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - name: "notify: new"
name: notify-new
uses: rectalogic/notify-irc@v1 uses: rectalogic/notify-irc@v1
if: github.event.issue.state == "open" if: github.event.issue.state == "open"
with: with:
@ -17,8 +16,7 @@ jobs:
channel: "#calamares" channel: "#calamares"
nickname: gh-issues nickname: gh-issues
message: "[${{ github.event.issue.title }}](${{ github.event.issue.url }}) opened by ${{ github.actor }}" message: "[${{ github.event.issue.title }}](${{ github.event.issue.url }}) opened by ${{ github.actor }}"
- - name: "notify: closed"
name: notify-closed
uses: rectalogic/notify-irc@v1 uses: rectalogic/notify-irc@v1
if: github.event.issue.state != "open" if: github.event.issue.state != "open"
with: with: