File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,15 @@ jobs:
18
18
const child_process = require('node:child_process')
19
19
child_process.exec(
20
20
`git fetch --depth 1 origin +${ref}:${ref}`,
21
- {}
22
- (err, stdout, stderr ) => child_process.exec(
21
+ {},
22
+ () => child_process.exec(
23
23
`git for-each-ref --format='%(contents)' ${ref}`,
24
24
{},
25
25
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)
32
30
const body = i < 0 ? j < 0 ? stdout : stdout.slice(0, j) : stdout.slice(0, i)
33
31
const response = await github.request(
34
32
`POST /repos/${owner}/${repo}/releases`,
You can’t perform that action at this time.
0 commit comments