CI: switch to shared Calamares actions entirely
This commit is contained in:
parent
2d8cf6aabf
commit
1021db053d
20
.github/actions/notify-push/action.yml
vendored
20
.github/actions/notify-push/action.yml
vendored
@ -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
|
|
4
.github/workflows/issues.yml
vendored
4
.github/workflows/issues.yml
vendored
@ -10,14 +10,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: "notify: new"
|
- name: "notify: new"
|
||||||
if: github.event.issue.state == 'open'
|
if: github.event.issue.state == 'open'
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
message: "OPENED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}"
|
message: "OPENED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}"
|
||||||
- name: "notify: closed"
|
- name: "notify: closed"
|
||||||
if: github.event.issue.state != 'open'
|
if: github.event.issue.state != 'open'
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
|
4
.github/workflows/nightly-debian.yml
vendored
4
.github/workflows/nightly-debian.yml
vendored
@ -84,14 +84,14 @@ jobs:
|
|||||||
run: make install VERBOSE=1
|
run: make install VERBOSE=1
|
||||||
- name: "notify: ok"
|
- name: "notify: ok"
|
||||||
if: ${{ success() && github.repository == 'calamares/calamares' }}
|
if: ${{ success() && github.repository == 'calamares/calamares' }}
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
|
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
|
||||||
- name: "notify: fail"
|
- name: "notify: fail"
|
||||||
if: ${{ failure() && github.repository == 'calamares/calamares' }}
|
if: ${{ failure() && github.repository == 'calamares/calamares' }}
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
|
4
.github/workflows/nightly-neon.yml
vendored
4
.github/workflows/nightly-neon.yml
vendored
@ -83,14 +83,14 @@ jobs:
|
|||||||
retention-days: 3
|
retention-days: 3
|
||||||
- name: "notify: ok"
|
- name: "notify: ok"
|
||||||
if: ${{ success() && github.repository == 'calamares/calamares' }}
|
if: ${{ success() && github.repository == 'calamares/calamares' }}
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
|
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
|
||||||
- name: "notify: fail"
|
- name: "notify: fail"
|
||||||
if: ${{ failure() && github.repository == 'calamares/calamares' }}
|
if: ${{ failure() && github.repository == 'calamares/calamares' }}
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
|
4
.github/workflows/nightly-opensuse.yml
vendored
4
.github/workflows/nightly-opensuse.yml
vendored
@ -82,14 +82,14 @@ jobs:
|
|||||||
run: make install VERBOSE=1
|
run: make install VERBOSE=1
|
||||||
- name: "notify: ok"
|
- name: "notify: ok"
|
||||||
if: ${{ success() && github.repository == 'calamares/calamares' }}
|
if: ${{ success() && github.repository == 'calamares/calamares' }}
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
|
message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.pre_build.outputs.message }}"
|
||||||
- name: "notify: fail"
|
- name: "notify: fail"
|
||||||
if: ${{ failure() && github.repository == 'calamares/calamares' }}
|
if: ${{ failure() && github.repository == 'calamares/calamares' }}
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
|
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@ -79,7 +79,7 @@ jobs:
|
|||||||
run: make install VERBOSE=1
|
run: make install VERBOSE=1
|
||||||
- name: "notify: ok"
|
- name: "notify: ok"
|
||||||
if: ${{ success() && github.repository == 'calamares/calamares' }}
|
if: ${{ success() && github.repository == 'calamares/calamares' }}
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
@ -88,7 +88,7 @@ jobs:
|
|||||||
.. ${{ steps.pre_build.outputs.message }}
|
.. ${{ steps.pre_build.outputs.message }}
|
||||||
- name: "notify: fail"
|
- name: "notify: fail"
|
||||||
if: ${{ failure() && github.repository == 'calamares/calamares' }}
|
if: ${{ failure() && github.repository == 'calamares/calamares' }}
|
||||||
uses: ./.github/actions/notify-push
|
uses: calamares/actions/matrix-notify@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MATRIX_TOKEN }}
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
room: ${{ secrets.MATRIX_ROOM }}
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
|
Loading…
Reference in New Issue
Block a user