diff --git a/dist/index.js b/dist/index.js index e45940e..21873aa 100644 --- a/dist/index.js +++ b/dist/index.js @@ -30213,7 +30213,7 @@ function run(context) { (0, core_1.info)('无需提交'); return true; } - yield (0, exec_1.exec)('git', ['-am', 'chore: update snapshot'], { cwd: `../${context.repo}` }); + yield (0, exec_1.exec)('git', ['commit', '-am', 'chore: update snapshot'], { cwd: `../${context.repo}` }); if (isForkPr) { yield (0, exec_1.exec)('git', ['push', prData.head.user.login, `HEAD:${prData.head.ref}`], { cwd: `../${context.repo}` }); } diff --git a/src/tdesign/vue.ts b/src/tdesign/vue.ts index 08d8ef3..50a1613 100644 --- a/src/tdesign/vue.ts +++ b/src/tdesign/vue.ts @@ -55,7 +55,7 @@ export default async function run(context: TriggerContext) { info('无需提交') return true } - await exec('git', ['-am', 'chore: update snapshot'], { cwd: `../${context.repo}` }) + await exec('git', ['commit', '-am', 'chore: update snapshot'], { cwd: `../${context.repo}` }) if (isForkPr) { await exec('git', ['push', prData.head.user.login, `HEAD:${prData.head.ref}`], { cwd: `../${context.repo}` }) }