mirror of https://github.com/cutefishos/calamares
CI: try to use actions-metadata rather than local script
parent
c333b9bb0a
commit
5bf118409a
@ -0,0 +1,20 @@
|
|||||||
|
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 "$INPUT_MESSAGE" | jq -Rs '{"msgtype": "m.text", "body":@text}' ) "https://matrix.org/_matrix/client/r0/rooms/%21${INPUT_ROOM}/send/m.room.message?access_token=${INPUT_TOKEN}" > /dev/null
|
Loading…
Reference in New Issue