diff --git a/src/download.ts b/src/download.ts index ff74892..1afb006 100644 --- a/src/download.ts +++ b/src/download.ts @@ -436,7 +436,7 @@ function pushChanges(detachedSubmodules: string[], submodules: string[]): void { 'UI/cmake/linux/com.obsproject.Studio.desktop', 'UI/frontend-plugins/*/data/locale/*-*.ini' ]) { - exec(`git add '${allowedPath}'`); + ACTIONS.info(exec(`git add '${allowedPath}'`)); } for (const submodule of submodules) { exec(`git add plugins/${submodule}`); @@ -450,8 +450,13 @@ function pushChanges(detachedSubmodules: string[], submodules: string[]): void { ACTIONS.info('No changes in main repository. Skipping push.'); return; } - exec(`git commit -m '${STRINGS.git.commitTitle}'`); - exec('git push'); + try { + ACTIONS.info(exec('git log --staged')); + exec(`git commit -m '${STRINGS.git.commitTitle}'`); + exec('git push'); + } catch (e) { + ACTIONS.setFailed(e as Error); + } } (async () => {