Skip to content

Commit f4081a2

Browse files
authored
Merge pull request #2364 from axewilledge/notification
Remove tooling team chat notification actions and related workflow steps
2 parents da2b2ba + e82840e commit f4081a2

9 files changed

Lines changed: 4 additions & 443 deletions

File tree

.github/actions/dailyBuildNotification/action.yml

Lines changed: 0 additions & 112 deletions
This file was deleted.

.github/actions/failure-notification/action.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/actions/pr/action.yml

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
name: 'Create PR and sent notification'
1+
name: 'Create PR'
22
inputs:
33
version:
44
description: 'Publish version'
55
required: true
66
isPreRelease:
77
default: true
88
type: boolean
9-
chatAPI:
10-
description: 'Google chat API'
11-
required: true
129
bot_username:
1310
description: 'Ballerina bot username'
1411
required: true
@@ -121,47 +118,3 @@ runs:
121118
echo "prURL=$pr" >> $GITHUB_OUTPUT
122119
env:
123120
GH_TOKEN: ${{ inputs.bot_token }}
124-
125-
- name: "PR Notification"
126-
if: ${{ inputs.isPreRelease == 'false' }}
127-
shell: bash
128-
run: |
129-
body=$(cat << EOF
130-
{
131-
"cards": [
132-
{
133-
"header": {
134-
"title": "New Release PR"
135-
},
136-
"sections": [
137-
{
138-
"widgets": [
139-
{
140-
"keyValue": {
141-
"topLabel": "Pull Request",
142-
"content": "${{ steps.pr.outputs.prURL }}",
143-
"button": {
144-
"textButton": {
145-
"text": "Merge",
146-
"onClick": {
147-
"openLink": {
148-
"url": "${{ steps.pr.outputs.prURL }}"
149-
}
150-
}
151-
}
152-
}
153-
}
154-
}
155-
]
156-
}
157-
]
158-
}
159-
]
160-
}
161-
EOF
162-
)
163-
curl \
164-
-X POST \
165-
-H 'Content-Type: application/json' \
166-
"${{ inputs.chatAPI }}" \
167-
-d "$body"

.github/actions/release/action.yml

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Release vsix to github and notify'
1+
name: 'Release vsix to github'
22
inputs:
33
repo:
44
description: 'Github repository name'
@@ -9,12 +9,6 @@ inputs:
99
token:
1010
description: 'Publish token'
1111
required: true
12-
chatAPI:
13-
description: 'Google chat API'
14-
required: true
15-
threadId:
16-
description: 'Google chat thread ID'
17-
required: true
1812

1913
runs:
2014
using: "composite"
@@ -43,52 +37,3 @@ runs:
4337
uploadResponse=`curl -X POST -H "Authorization:token ${{ inputs.token }}" -H "Content-Type:application/octet-stream" \
4438
--data-binary @${{ steps.vsix.outputs.vsixName }} \
4539
https://uploads.github.com/repos/${{ inputs.repo }}/releases/$id/assets?name=${{ steps.vsix.outputs.vsixName }}`
46-
47-
- name: "Release Notification"
48-
shell: bash
49-
run: |
50-
body=$(cat << EOF
51-
{
52-
"cards": [
53-
{
54-
"header": {
55-
"title": "New Release - ${{ inputs.name }}"
56-
},
57-
"sections": [
58-
{
59-
"widgets": [
60-
{
61-
"keyValue": {
62-
"topLabel": "VSIX",
63-
"content": "v${{ steps.vsix.outputs.version }}",
64-
"onClick": {
65-
"openLink": {
66-
"url": "https://github.com/${{ inputs.repo }}/releases/tag/v${{ steps.vsix.outputs.version }}"
67-
}
68-
},
69-
"iconUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Visual_Studio_Code_1.35_icon.svg/512px-Visual_Studio_Code_1.35_icon.svg.png",
70-
"button": {
71-
"textButton": {
72-
"text": "Download VSIX",
73-
"onClick": {
74-
"openLink": {
75-
"url": "https://github.com/${{ inputs.repo }}/releases/download/v${{ steps.vsix.outputs.version }}/${{ steps.vsix.outputs.vsixName }}"
76-
}
77-
}
78-
}
79-
}
80-
}
81-
}
82-
]
83-
}
84-
]
85-
}
86-
]
87-
}
88-
EOF
89-
)
90-
curl \
91-
-X POST \
92-
-H 'Content-Type: application/json' \
93-
"${{ inputs.chatAPI }}" \
94-
-d "$body"

.github/workflows/daily-build.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,3 @@ jobs:
2323
run: |
2424
unzip build.zip
2525
rm build.zip
26-
27-
NotifyFailure:
28-
needs: Build
29-
if: ${{ always() && contains(needs.*.result, 'failure') && github.repository == 'wso2/vscode-extensions'}}
30-
runs-on: ubuntu-latest
31-
steps:
32-
- uses: actions/checkout@v2
33-
- name: "Failure Notification"
34-
uses: ./.github/actions/failure-notification
35-
with:
36-
title: "Daily Build Failed"
37-
run_id: ${{ github.run_id }}
38-
chat_api: ${{ secrets.TOOLING_TEAM_CHAT_API }}
39-
repository: ${{ github.repository }}

0 commit comments

Comments
 (0)