Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f81f8eb

Browse files
authored
Update Matrix and secrets (#14646)
* WIP * Fix usage of the s3krit/walking-tag-action action * Fix notification jobs * Fix notification content --------- Co-authored-by: parity-processbot <>
1 parent 868c416 commit f81f8eb

File tree

5 files changed

+35
-15
lines changed

5 files changed

+35
-15
lines changed

.github/workflows/burnin-label-notification.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@ on:
66
jobs:
77
notify-devops:
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
channel:
12+
- name: 'Team: DevOps'
13+
room: '!lUslSijLMgNcEKcAiE:parity.io'
14+
915
steps:
1016
- name: Notify devops
11-
if: github.event.label.name == 'A1-needsburnin'
12-
uses: s3krit/[email protected]
17+
if: startsWith(github.event.label.name, 'A1-')
18+
uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3
1319
with:
14-
room_id: ${{ secrets.POLKADOT_DEVOPS_MATRIX_ROOM_ID }}
15-
access_token: ${{ secrets.POLKADOT_DEVOPS_MATRIX_ACCESS_TOKEN }}
16-
message: "@room Burn-in request received for [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"
17-
server: "matrix.parity.io"
20+
room_id: ${{ matrix.channel.room }}
21+
access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}
22+
server: "m.parity.io"
23+
message: |
24+
@room Burn-in request received for [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})

.github/workflows/release-bot.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,24 @@ on:
88
jobs:
99
ping_matrix:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
channel:
14+
- name: 'General: Rust, Polkadot, Substrate'
15+
room: '!aJymqQYtCjjqImFLSb:parity.io'
16+
pre-release: false
17+
1118
steps:
1219
- name: send message
13-
uses: s3krit/[email protected]
20+
uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3
1421
with:
15-
room_id: ${{ secrets.MATRIX_ROOM_ID }}
16-
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
17-
message: "**${{github.event.repository.full_name}}:** A release has been ${{github.event.action}}<br/>Release version [${{github.event.release.tag_name}}](${{github.event.release.html_url}})<br/><br/>***Description:***<br/>${{github.event.release.body}}<br/>"
18-
server: "matrix.parity.io"
22+
room_id: ${{ matrix.channel.room }}
23+
access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}
24+
server: "m.parity.io"
25+
message: |
26+
***${{github.event.repository.full_name}}:*** A release has been ${{github.event.action}}<br/>
27+
Release version [${{github.event.release.tag_name}}](${{github.event.release.html_url}})
28+
29+
-----
30+
31+
${{github.event.release.body}}<br/>

.github/workflows/release-tagging.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set Git tag
1515
uses: s3krit/walking-tag-action@d04f7a53b72ceda4e20283736ce3627011275178 # latest version from master
1616
with:
17-
TAG_NAME: release
18-
TAG_MESSAGE: Latest release
17+
tag-name: release
18+
tag-message: Latest release
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

scripts/ci/common/lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ structure_message() {
9999
# access_token: see https://matrix.org/docs/guides/client-server-api/
100100
# Usage: send_message $body (json formatted) $room_id $access_token
101101
send_message() {
102-
curl -XPOST -d "$1" "https://matrix.parity.io/_matrix/client/r0/rooms/$2/send/m.room.message?access_token=$3"
102+
curl -XPOST -d "$1" "https://m.parity.io/_matrix/client/r0/rooms/$2/send/m.room.message?access_token=$3"
103103
}
104104

105105
# Check for runtime changes between two commits. This is defined as any changes

scripts/ci/gitlab/publish_draft_release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ formatted_msg_body=$(cat <<EOF
4949
Draft release created: $html_url
5050
EOF
5151
)
52-
send_message "$(structure_message "$msg_body" "$formatted_msg_body")" "$MATRIX_ROOM_ID" "$MATRIX_ACCESS_TOKEN"
52+
send_message "$(structure_message "$msg_body" "$formatted_msg_body")" "!aJymqQYtCjjqImFLSb:parity.io" "$RELEASENOTES_MATRIX_V2_ACCESS_TOKEN"
5353

5454
echo "[+] Done! Maybe the release worked..."

0 commit comments

Comments
 (0)