git: alternative github context and additional methods

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-02-25 05:41:28 +01:00
parent 2e59ae7030
commit 8a69d6cb01
4 changed files with 210 additions and 18 deletions

View File

@@ -73,7 +73,7 @@ export class Install {
if (ref.match(/^[0-9a-fA-F]{40}$/)) {
vspec = ref;
} else {
vspec = await Git.getRemoteSha(repo, ref);
vspec = await Git.remoteSha(repo, ref);
}
core.debug(`Install.build: tool version spec ${vspec}`);