Skip to content

Commit 4aa0a42

Browse files
authored
Update index.js
1 parent 7481e30 commit 4aa0a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/winget/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async function updateInstaller(latestVersionPath, newVersionPath, latestVersion,
9090
}
9191

9292
// Update verions in RelativeFilePath
93-
const newContent = yaml.dump(data, {noRefs: true}).replaceAll(latestVersion, newVersion);
93+
const newContent = yaml.dump(data, {noRefs: true, lineWidth: -1, condenseFlow: true}).replaceAll(latestVersion, newVersion);
9494
await fs.writeFile(path.join(newVersionPath, 'eloston.ungoogled-chromium.installer.yaml'), newContent, {encoding: 'utf-8'});
9595
}
9696

@@ -112,4 +112,4 @@ async function syncRepo(token) {
112112
await exec.exec('git', ['push', 'origin', 'master', '--force'], {cwd: '.\\winget-pkgs'});
113113
}
114114

115-
run().catch(err => core.setFailed(err.message));
115+
run().catch(err => core.setFailed(err.message));

0 commit comments

Comments
 (0)