fix: git diffが失敗する問題を修正

This commit is contained in:
usbharu 2024-08-10 14:34:09 +09:00
parent 06a7b035e4
commit 8d9a6e5426
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ jobs:
var tags = []
for (let [key, value] of Object.entries(jsonData.projects)) {
const command = "git diff " + baseRef + " HEAD --name-only --relative=" + key + "\n";
const command = "git diff " + baseRef + " -- HEAD --name-only --relative=" + key + "\n";
const output = execSync(command, {encoding: 'utf8'});
if (output.length != 0) {
tags.push(value)