Skip to content

Commit 7d54794

Browse files
authored
fix wai-build getting the wrong commit msg (#1817)
* use node 14 * Use access token * try to configure git * use https * Set up WAI_GIT_* secrets * global * Cache node_modules * Skip empty commits * reset for develop * fix wai-build getting the wrong commit msg
1 parent c413c22 commit 7d54794

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/scripts/wai-build.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,14 @@ async function generateTestCases({ tmpDir, rulesDir, testAssetsDir }) {
4444
}
4545

4646
async function commitAndPush({ tmpDir }) {
47+
const commitMessage = (await $`git log -1 --pretty=%B`).stdout
4748
cd(tmpDir);
4849
try {
4950
const diff = (await $`git diff --name-status`).stdout;
5051
if (diff.trim().length === 0) {
5152
console.log('No changes detected, skipping git commit')
5253
return;
5354
}
54-
55-
const commitMessage = (await $`git log -1 --pretty=%B`).stdout
5655
await $`git add .`;
5756
await $`git commit -m ${commitMessage}`;
5857
await $`git push`;

0 commit comments

Comments
 (0)