Update src/actions-util.ts
Co-authored-by: Angela P Wen <angelapwen@github.com>
This commit is contained in:
parent
5b9b480165
commit
e6e3bf4923
3 changed files with 3 additions and 3 deletions
2
lib/actions-util.js
generated
2
lib/actions-util.js
generated
|
|
@ -88,7 +88,7 @@ const getCommitOid = async function (checkoutPath, ref = "HEAD") {
|
|||
return commitOid.trim();
|
||||
}
|
||||
catch (e) {
|
||||
core.info("Could not determine current commit SHA. Continuing with data from the environment.");
|
||||
core.info("Could not determine current commit SHA using git. Continuing with data from user input or environment.");
|
||||
core.debug(`Reason: ${e.message}`);
|
||||
core.debug(e.stack || "NO STACK");
|
||||
return (0, exports.getOptionalInput)("sha") || (0, util_1.getRequiredEnvParam)("GITHUB_SHA");
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -88,7 +88,7 @@ export const getCommitOid = async function (
|
|||
return commitOid.trim();
|
||||
} catch (e) {
|
||||
core.info(
|
||||
"Could not determine current commit SHA. Continuing with data from the environment."
|
||||
"Could not determine current commit SHA using git. Continuing with data from user input or environment."
|
||||
);
|
||||
core.debug(`Reason: ${(e as Error).message}`);
|
||||
core.debug((e as Error).stack || "NO STACK");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue