Skip to content

Commit 9f74b2f

Browse files
committed
💚 Make up the missing comma
Signed-off-by: kei-g <[email protected]>
1 parent 682d6cc commit 9f74b2f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@ jobs:
1818
const child_process = require('node:child_process')
1919
child_process.exec(
2020
`git fetch --depth 1 origin +${ref}:${ref}`,
21-
{}
22-
(err, stdout, stderr) => child_process.exec(
21+
{},
22+
() => child_process.exec(
2323
`git for-each-ref --format='%(contents)' ${ref}`,
2424
{},
2525
async (err, stdout, stderr) => {
26-
if (err) {
27-
core.setFailed(err)
28-
return
29-
}
30-
const i = stdout.search(/^Signed\-off\-by\:\ /g)
31-
const j = stdout.search(/^\-{5}BEGIN\ PGP\ SIGNATURE\-{5}$/g)
26+
if (err)
27+
return core.setFailed(err)
28+
const i = stdout.search(/Signed\-off\-by\:\ /g)
29+
const j = stdout.search(/\-{5}BEGIN\ PGP\ SIGNATURE\-{5}$/g)
3230
const body = i < 0 ? j < 0 ? stdout : stdout.slice(0, j) : stdout.slice(0, i)
3331
const response = await github.request(
3432
`POST /repos/${owner}/${repo}/releases`,

0 commit comments

Comments
 (0)