Skip to content

Commit a9ddffd

Browse files
Fix headers
1 parent 854ad7a commit a9ddffd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/cookbook_pr_trigger.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
{
3333
owner: owner,
3434
repo: repo,
35-
username: comment.user.login
35+
username: comment.user.login,
36+
headers: {
37+
'X-GitHub-Api-Version': '2022-11-28'
38+
}
3639
},
37-
headers: {
38-
'X-GitHub-Api-Version': '2022-11-28'
39-
}
4040
)
4141
4242
const commenter_can_push = commenter.data.user.permissions.push
@@ -63,11 +63,11 @@ jobs:
6363
repo: repo,
6464
workflow_id: 'cookbook_preproc.yaml',
6565
ref: ref,
66-
inputs: {pr_number: pr_number.toString()}
66+
inputs: {pr_number: pr_number.toString()},
67+
headers: {
68+
'X-GitHub-Api-Version': '2022-11-28'
69+
}
6770
},
68-
headers: {
69-
'X-GitHub-Api-Version': '2022-11-28'
70-
}
7171
)
7272
7373
console.log(dispatch)

0 commit comments

Comments
 (0)