Compare commits

..

2 Commits

Author SHA1 Message Date
CrazyMax
38d1dce1ff Merge pull request #457 from crazy-max/fix-github-ref-pr
Some checks failed
publish / publish (push) Has been cancelled
context: fix pull request ref
2024-09-30 09:59:24 +02:00
CrazyMax
958f229292 context: fix pull request ref
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-09-27 18:19:01 +02:00

View File

@@ -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;
}