@@ -81275,8 +81275,9 @@ async function setGitBranch(path, pattern, gitUrl, gitBranch) {
8127581275 }
8127681276 for (const dep in manifest.dependencies) {
8127781277 if (pattern.test(dep)) {
81278- // if the dep has a path set, don't set the git/branch to avoid ambiguities
81279- if (!toml.get(manifestPath, prefix.concat("dependencies", dep, "path"))) {
81278+ // if the dep has a path set or is part of workspace, don't set the git/branch to avoid ambiguities
81279+ if (!toml.get(manifestPath, prefix.concat("dependencies", dep, "path")) ||
81280+ !toml.get(manifestPath, prefix.concat("dependencies", dep, "workspace"))) {
8128081281 await toml.set(manifestPath, prefix.concat("dependencies", dep, "git"), gitUrl);
8128181282 await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), gitBranch);
8128281283 }
@@ -81612,14 +81613,16 @@ async function main(input) {
8161281613 .filter(r => r);
8161381614 for (const path of cargoPaths) {
8161481615 await _cargo__WEBPACK_IMPORTED_MODULE_4__/* .setGitBranch */ .B0(path, input.depsRegExp, input.depsGitUrl, input.depsBranch);
81615- (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)("git add .", { cwd: repo });
81616- (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)(`git commit --message 'chore: Update git/branch ${path}/Cargo.toml'`, { cwd: repo, env: _config__WEBPACK_IMPORTED_MODULE_5__/* .gitEnv */ .B });
81617- (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)(`cargo check --manifest-path ${path}/Cargo.toml`);
81618- (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)("git commit Cargo.lock --message 'chore: Update Cargo lockfile'", {
81619- cwd: repo,
81620- env: _config__WEBPACK_IMPORTED_MODULE_5__/* .gitEnv */ .B,
81621- check: false,
81622- });
81616+ if ((0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)("git diff", { cwd: repo, check: false })) {
81617+ (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)("git add .", { cwd: repo });
81618+ (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)(`git commit --message 'chore: Update git/branch ${path}/Cargo.toml'`, { cwd: repo, env: _config__WEBPACK_IMPORTED_MODULE_5__/* .gitEnv */ .B });
81619+ (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)(`cargo check --manifest-path ${path}/Cargo.toml`);
81620+ (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)("git commit Cargo.lock --message 'chore: Update Cargo lockfile'", {
81621+ cwd: repo,
81622+ env: _config__WEBPACK_IMPORTED_MODULE_5__/* .gitEnv */ .B,
81623+ check: false,
81624+ });
81625+ }
8162381626 }
8162481627 (0,_command__WEBPACK_IMPORTED_MODULE_3__.sh)(`git push --force ${remote} eclipse-zenoh-bot/post-release-${input.version}`, { cwd: repo });
8162581628 await cleanup(input);
0 commit comments