[neon/ubuntu-core/models.test] debian: make sure we are on a branch

Carlos De Maine null at kde.org
Wed Aug 7 12:09:16 BST 2024


Git commit c40829a341e8f8960dd3e230adfc35e50f832a75 by Carlos De Maine.
Committed on 07/08/2024 at 11:09.
Pushed by carlosdem into branch 'models.test'.

make sure we are on a branch

M  +3    -1    debian/snap-image-model.yml

https://invent.kde.org/neon/ubuntu-core/-/commit/c40829a341e8f8960dd3e230adfc35e50f832a75

diff --git a/debian/snap-image-model.yml b/debian/snap-image-model.yml
index 564e985..d4f73bc 100644
--- a/debian/snap-image-model.yml
+++ b/debian/snap-image-model.yml
@@ -36,7 +36,9 @@ snap_image_model:
     # copy the new model to the artifacts dir
     - cp -vf ./*.model  $CI_PROJECT_DIR/.kde-ci-packages/
     # push the new model to gitlab
-    - echo pushing new models to ref $CI_COMMIT_REF_NAME
+    - git config user.email "project_17308_bot_a45360256b28775b175cf622f6b817ad at invent.kde.org"
+    - git config user.name "$UBUNTU_NEON_CORE_ACCESS_TOKEN"
+    - git switch HEAD:$CI_COMMIT_REF_NAME
     - git add -f ./*.model
     - git commit -m "Update models again"
     - git push "https://$PROJECT_TOKEN_USERNAME:${UBUNTU_NEON_CORE_ACCESS_TOKEN}@invent.kde.org/neon/ubuntu-core.git HEAD:$CI_COMMIT_REF_NAME" -o ci.skip


More information about the Neon-commits mailing list