Skip to content

Commit

Permalink
💚 Make up the missing comma
Browse files Browse the repository at this point in the history
Signed-off-by: kei-g <km.8k6ce+github@gmail.com>
  • Loading branch information
kei-g committed Jan 16, 2023
1 parent 682d6cc commit 9f74b2f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ jobs:
const child_process = require('node:child_process')
child_process.exec(
`git fetch --depth 1 origin +${ref}:${ref}`,
{}
(err, stdout, stderr) => child_process.exec(
{},
() => child_process.exec(
`git for-each-ref --format='%(contents)' ${ref}`,
{},
async (err, stdout, stderr) => {
if (err) {
core.setFailed(err)
return
}
const i = stdout.search(/^Signed\-off\-by\:\ /g)
const j = stdout.search(/^\-{5}BEGIN\ PGP\ SIGNATURE\-{5}$/g)
if (err)
return core.setFailed(err)
const i = stdout.search(/Signed\-off\-by\:\ /g)
const j = stdout.search(/\-{5}BEGIN\ PGP\ SIGNATURE\-{5}$/g)
const body = i < 0 ? j < 0 ? stdout : stdout.slice(0, j) : stdout.slice(0, i)
const response = await github.request(
`POST /repos/${owner}/${repo}/releases`,
Expand Down

0 comments on commit 9f74b2f

Please sign in to comment.