We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 18c8bdd + 958f229 commit 38d1dceCopy full SHA for 38d1dce
1 file changed
src/context.ts
@@ -45,6 +45,8 @@ export class Context {
45
}
46
if (github.context.sha && !gitRef.startsWith(`refs/pull/`)) {
47
gitRef = github.context.sha;
48
+ } else if (gitRef.startsWith(`refs/pull/`)) {
49
+ gitRef = gitRef.replace(/\/merge$/g, '/head');
50
51
return gitRef;
52
0 commit comments