From e5d4f214c99c08b9dc184ddd6f5214bc6aba2c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?oliver=20k=C3=B6nig?= Date: Wed, 8 Apr 2026 09:09:35 +0000 Subject: [PATCH] fix(ci): update .main.commit for non-dev mcore branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When bumping on release branches (e.g. r0.4.0 with mcore-core_r0.17.0), the mcore-branch input matches neither "main" nor "dev", so .main.commit was never written. The unit test test_main_commit_matches_submodule then fails because the submodule no longer matches .main.commit. Fix: write .main.commit for all non-dev branches (main + release branches). Signed-off-by: oliver könig --- .github/workflows/_update_dependencies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_update_dependencies.yml b/.github/workflows/_update_dependencies.yml index 30a0a1f4b9..82d9820953 100644 --- a/.github/workflows/_update_dependencies.yml +++ b/.github/workflows/_update_dependencies.yml @@ -80,10 +80,10 @@ jobs: MLM_COMMIT=$(git rev-parse HEAD) popd - if [[ "$TARGET_BRANCH" == "main" ]]; then - echo $MLM_COMMIT > .main.commit - elif [[ "$TARGET_BRANCH" == "dev" ]]; then + if [[ "$TARGET_BRANCH" == "dev" ]]; then echo $MLM_COMMIT > .dev.commit + else + echo $MLM_COMMIT > .main.commit fi - name: Upgrade lock file