Merge pull request #457 from crazy-max/fix-github-ref-pr
Some checks failed
publish / publish (push) Has been cancelled
Some checks failed
publish / publish (push) Has been cancelled
context: fix pull request ref
This commit is contained in:
@@ -45,6 +45,8 @@ export class Context {
|
||||
}
|
||||
if (github.context.sha && !gitRef.startsWith(`refs/pull/`)) {
|
||||
gitRef = github.context.sha;
|
||||
} else if (gitRef.startsWith(`refs/pull/`)) {
|
||||
gitRef = gitRef.replace(/\/merge$/g, '/head');
|
||||
}
|
||||
return gitRef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user