Skip to content

Commit 00b7c07

Browse files
authored
fix: update source (#73)
1 parent e10d8e5 commit 00b7c07

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

dist/main/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+6-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ const send = async () => {
147147
lastStep?.conclusion === Conclusions.SUCCESS
148148
? 'SUCCEEDED'
149149
: lastStep?.conclusion === Conclusions.CANCELLED
150-
? 'CANCELLED'
151-
: 'FAILED'
150+
? 'CANCELLED'
151+
: 'FAILED'
152152

153153
const conclusion_color =
154154
lastStep?.conclusion === Conclusions.SUCCESS
155155
? TextBlockColor.Good
156156
: lastStep?.conclusion === Conclusions.CANCELLED
157-
? TextBlockColor.Warning
158-
: TextBlockColor.Attention
157+
? TextBlockColor.Warning
158+
: TextBlockColor.Attention
159159

160160
const rawdata = JSON.stringify(temlpateData)
161161
const template = new Template(rawdata)
@@ -203,9 +203,9 @@ const send = async () => {
203203

204204
core.info(JSON.stringify(webhookBody))
205205

206-
const timeout = 30000;
207-
const controller = new AbortController();
208-
const id = setTimeout(() => controller.abort(), timeout);
206+
const timeout = 30000
207+
const controller = new AbortController()
208+
const id = setTimeout(() => controller.abort(), timeout)
209209

210210
const response = await fetch(webhookUri, {
211211
method: 'POST',
@@ -214,7 +214,7 @@ const send = async () => {
214214
signal: controller.signal
215215
})
216216
const responseData = await response.json()
217-
clearTimeout(id);
217+
clearTimeout(id)
218218
core.info(JSON.stringify(responseData))
219219
}
220220

0 commit comments

Comments
 (0)