[neon/ubuntu-core/models.test] debian: tidy up

Carlos De Maine null at kde.org
Wed Aug 7 12:30:33 BST 2024


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

tidy up

M  +4    -2    debian/snap-image-model.yml

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

diff --git a/debian/snap-image-model.yml b/debian/snap-image-model.yml
index 41159c6..ae9cc72 100644
--- a/debian/snap-image-model.yml
+++ b/debian/snap-image-model.yml
@@ -36,12 +36,14 @@ 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
+    # set our identity
     - git config --global user.email "project_17308_bot_a45360256b28775b175cf622f6b817ad at invent.kde.org"
     - git config --global user.name "$UBUNTU_NEON_CORE_ACCESS_TOKEN"
-    - git switch $CI_COMMIT_REF_NAME
+    # make sure we haven't got out of sync and are on the branch we want
+    - git checkout $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
+    - git push "https://project_17308_bot_a45360256b28775b175cf622f6b817ad:${UBUNTU_NEON_CORE_ACCESS_TOKEN}@invent.kde.org/neon/ubuntu-core.git HEAD:$CI_COMMIT_REF_NAME" -o ci.skip
   interruptible: true
   after_script:
     # delete the gpg keyring


More information about the Neon-commits mailing list