Skip to content

Commit

Permalink
fix(ci): updater checkout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Aug 29, 2024
1 parent 444e4f4 commit 0fe79da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,16 @@ async function resolveUpdater() {
tag: tag.name,
});

let updateLog: string | null = null;
try {
updateLog = await resolveUpdateLog(tag.name);
} catch (err) {
consola.error(err);
}

const updateData = {
name: tag.name,
notes: UPDATE_RELEASE_BODY || (await resolveUpdateLog(tag.name)), // use updatelog.md
notes: UPDATE_RELEASE_BODY || updateLog || latestRelease.body,
pub_date: new Date().toISOString(),
platforms: {
win64: { signature: "", url: "" }, // compatible with older formats
Expand Down

0 comments on commit 0fe79da

Please sign in to comment.