CI: switch to shared Calamares actions entirely

main
Adriaan de Groot 4 years ago
parent 2d8cf6aabf
commit 1021db053d

@ -1,20 +0,0 @@
name: 'Notify on Push'
description: 'Notify Matrix room'
inputs:
room:
description: 'Matrix Room ID'
required: true
token:
description: 'Matrix Token'
required: true
message:
description: 'Message to send'
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
curl -s -XPOST -d "$( echo "${{ inputs.message }}" | jq -Rsc '{"msgtype": "m.text", "body":@text}' )" "https://matrix.org/_matrix/client/r0/rooms/%21${{ inputs.room }}/send/m.room.message?access_token=${{ inputs.token }}" > /dev/null

@ -10,14 +10,14 @@ jobs:
steps:
- name: "notify: new"
if: github.event.issue.state == 'open'
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: "OPENED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}"
- name: "notify: closed"
if: github.event.issue.state != 'open'
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}

@ -84,14 +84,14 @@ jobs:
run: make install VERBOSE=1
- name: "notify: ok"
if: ${{ success() && github.repository == 'calamares/calamares' }}
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
- name: "notify: fail"
if: ${{ failure() && github.repository == 'calamares/calamares' }}
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}

@ -83,14 +83,14 @@ jobs:
retention-days: 3
- name: "notify: ok"
if: ${{ success() && github.repository == 'calamares/calamares' }}
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
- name: "notify: fail"
if: ${{ failure() && github.repository == 'calamares/calamares' }}
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}

@ -82,14 +82,14 @@ jobs:
run: make install VERBOSE=1
- name: "notify: ok"
if: ${{ success() && github.repository == 'calamares/calamares' }}
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
- name: "notify: fail"
if: ${{ failure() && github.repository == 'calamares/calamares' }}
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}

@ -79,7 +79,7 @@ jobs:
run: make install VERBOSE=1
- name: "notify: ok"
if: ${{ success() && github.repository == 'calamares/calamares' }}
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
@ -88,7 +88,7 @@ jobs:
.. ${{ steps.pre_build.outputs.message }}
- name: "notify: fail"
if: ${{ failure() && github.repository == 'calamares/calamares' }}
uses: ./.github/actions/notify-push
uses: calamares/actions/matrix-notify@v1
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}

Loading…
Cancel
Save