Skip to content

Commit

Permalink
fix: specify absolute path to cargo-sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Aug 21, 2024
1 parent d19afd2 commit 265afd0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132469,7 +132469,7 @@ async function main() {

// Create timestamp.
core.info("Creating timestamp.");
await exec.exec("cargo-sweep", ["sweep", "--stamp"]);
await exec.exec('"~/.cargo/bin/cargo-sweep"', ["sweep", "--stamp"]);

// Save contents of `sweep.timestamp` to state, removing the original file.
const timestamp = (await readFile("sweep.timestamp")).toString();
Expand Down
2 changes: 1 addition & 1 deletion dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28074,7 +28074,7 @@ async function main() {

// Remove everything older than timestamp.
core.info("Sweeping unused build files.");
await exec.exec("cargo-sweep", ["sweep", "--file"]);
await exec.exec('"~/.cargo/bin/cargo-sweep"', ["sweep", "--file"]);

// Remove `cargo-sweep` folder so it is not cached.
await io.rmRF("~/.cargo/bin/cargo-sweep");
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function main() {

// Create timestamp.
core.info("Creating timestamp.");
await exec.exec("cargo-sweep", ["sweep", "--stamp"]);
await exec.exec('"~/.cargo/bin/cargo-sweep"', ["sweep", "--stamp"]);

// Save contents of `sweep.timestamp` to state, removing the original file.
const timestamp = (await readFile("sweep.timestamp")).toString();
Expand Down
2 changes: 1 addition & 1 deletion src/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function main() {

// Remove everything older than timestamp.
core.info("Sweeping unused build files.");
await exec.exec("cargo-sweep", ["sweep", "--file"]);
await exec.exec('"~/.cargo/bin/cargo-sweep"', ["sweep", "--file"]);

// Remove `cargo-sweep` folder so it is not cached.
await io.rmRF("~/.cargo/bin/cargo-sweep");
Expand Down

0 comments on commit 265afd0

Please sign in to comment.