Skip to content

Commit

Permalink
fix: slice short commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdevpereira committed Sep 26, 2022
1 parent 54ac3bf commit a043c40
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,7 @@ const COVERAGE_OUTPUT_FOLDER = "./coverage";
**/
core.startGroup("Calculating commit short hash...");

const command = `git rev-parse --short ${github.context.sha}`;
let commitShortHash = "";
await exec(command, undefined, {
listeners: {
stdout: (data) => {
commitShortHash += data.toString();
},
},
});
let commitShortHash = github.context.sha.slice(0, 7);

core.debug("Calculated commit short hash: " + commitShortHash);
core.endGroup();
Expand Down

0 comments on commit a043c40

Please sign in to comment.