Skip to content

Commit 345e2fe

Browse files
Correct Undefined repository property (#40)
https://github.com/actions/toolkit/blob/d1a6612b14bbac7fdab0734324d3e2c804413663/packages/github/src/github.ts require('@actions/github').repository is undefined Rather take `${owner}/${repo}` As defined in @action/github here https://github.com/actions/toolkit/blob/d1a6612b14bbac7fdab0734324d3e2c804413663/packages/github/src/context.ts#L6
1 parent 2486136 commit 345e2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const main = async () => {
3333
let finalHtml = '';
3434

3535
const options = {
36-
repository,
36+
repository: repository || `${owner}/${repo}`,
3737
prefix: `${process.env.GITHUB_WORKSPACE}/`,
3838
covFile,
3939
xmlFile,

0 commit comments

Comments
 (0)