Skip to content

Commit 3f6b725

Browse files
committed
misc: fix changelog workflow
1 parent c16e5db commit 3f6b725

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/generate-changelog.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const changeLogPath = resolve(__dirname, "../CHANGELOG.md");
77

88
let newVersion = lastVersion;
99

10-
console.log("Gets Release Version from GITHUB_EVENT_PATH");
10+
console.log(`Gets Release Version from ${process.env.GITHUB_EVENT_PATH}`);
1111
if (process.env.GITHUB_EVENT_PATH) {
1212
const {
1313
pull_request: { title },
@@ -20,6 +20,9 @@ if (process.env.GITHUB_EVENT_PATH) {
2020
process.exit(0);
2121
}
2222
}
23+
24+
execSync(`git reset --hard HEAD`);
25+
2326
console.log(`New Version: ${newVersion}`);
2427

2528
console.log("Bump Version");

0 commit comments

Comments
 (0)