mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-22 15:41:46 +00:00
Add callback to file move
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
074752d070
commit
b1d9a32973
1 changed files with 5 additions and 1 deletions
6
index.js
6
index.js
|
|
@ -40,7 +40,11 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
||||||
// Extract the archive into the install target
|
// Extract the archive into the install target
|
||||||
console.log("Unpacking archive file...")
|
console.log("Unpacking archive file...")
|
||||||
execSync(`${extract} "${archive}"`)
|
execSync(`${extract} "${archive}"`)
|
||||||
fs.rename("gotestfmt", `${binpath}/gotestfmt`)
|
fs.rename("gotestfmt", `${binpath}/gotestfmt`, function (err) {
|
||||||
|
if (err) {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Remove the downloaded asset archive
|
// Remove the downloaded asset archive
|
||||||
console.log("Removing asset archive...")
|
console.log("Removing asset archive...")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue