You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add better error messages when determining merge-base
Avoid printing scary error messages to console when the current
directory is not a git repo. Instead provide a better reason for the git
failure and continue on.
"Could not determine current commit SHA using git. Continuing with data from user input or environment.",
88
-
);
89
-
core.debug(`Reason: ${(easError).message}`);
90
-
core.debug((easError).stack||"NO STACK");
87
+
if(output.includes("not a git repository")){
88
+
core.info(
89
+
"Could not determine current commit SHA using git. Continuing with data from user input or environment. The checkout path provided to the action does not appear to be a git repository.",
90
+
);
91
+
}else{
92
+
core.info(
93
+
`Could not determine current commit SHA using git. Continuing with data from user input or environment. Failed to call git to determine merge base. Continuing with data from environment: ${output}`,
0 commit comments