diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 301da69b2b..0d6ca6b2ed 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -2,7 +2,7 @@ name: Generate Changelog on: release: - types: [published] + types: [published, created] jobs: changelog: diff --git a/scripts/changelog.mjs b/scripts/changelog.mjs index d2df907c49..fb9fc2cafb 100644 --- a/scripts/changelog.mjs +++ b/scripts/changelog.mjs @@ -59,6 +59,14 @@ const note = `# ${release.tagName} (${formatDate(new Date(release.publishedAt))} await writeFile(changeLogFilePath, `${note}\n${currentChangeLog}`); +await execa("git", ["config", "--global", "user.name", "Zihua Li"]); +await execa("git", [ + "config", + "--global", + "user.email", + "635902+luin@users.noreply.github.com", +]); + await execa("git", ["add", changelogFilename]); await execa("git", [ "commit",