Skip to content

Commit

Permalink
fix(deploy/w3c): don't crash if file is already named Overview.html (
Browse files Browse the repository at this point in the history
…#183)

The -n flag in mv stands for "no clobber".
  • Loading branch information
sidvishnoi authored May 29, 2024
1 parent e690b1b commit 04686b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deploy-w3c-echidna.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ async function publish(input: Input, buildOutput: BuildResult) {
const { wgDecisionURL: decision, token, cc, repository } = input;
const annotation = `triggered by auto-publish spec-prod action on ${repository}`;
const tarFileName = "/tmp/echidna.tar";
await sh(`mv ${file} Overview.html`, { cwd: outputDir });
await sh(`mv -n ${file} Overview.html`, { cwd: outputDir });
await sh(`tar cvf ${tarFileName} *`, {
output: "stream",
cwd: outputDir,
});
await sh(`mv Overview.html ${file}`, { cwd: outputDir });
await sh(`mv -n Overview.html ${file}`, { cwd: outputDir });

let command = `curl '${API_URL}'`;
// command += ` -F "dry-run=true"`;
Expand Down

0 comments on commit 04686b8

Please sign in to comment.