Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38d1dce1ff | ||
|
|
958f229292 |
@@ -45,6 +45,8 @@ export class Context {
|
|||||||
}
|
}
|
||||||
if (github.context.sha && !gitRef.startsWith(`refs/pull/`)) {
|
if (github.context.sha && !gitRef.startsWith(`refs/pull/`)) {
|
||||||
gitRef = github.context.sha;
|
gitRef = github.context.sha;
|
||||||
|
} else if (gitRef.startsWith(`refs/pull/`)) {
|
||||||
|
gitRef = gitRef.replace(/\/merge$/g, '/head');
|
||||||
}
|
}
|
||||||
return gitRef;
|
return gitRef;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user