Loading .gitlab-ci.yml +4 −5 Original line number Diff line number Diff line Loading @@ -146,17 +146,16 @@ pushToPrebuilt: - NEW_APK_VERSION=$(awk -F '-' '{print $2}' <<< "$NEW_APK_NAME") - echo $NEW_APK_NAME - echo $NEW_APK_VERSION # - git lfs clone git@gitlab.e.foundation:e/os/android_prebuilts_prebuiltapks_lfs.git - git lfs clone -b 55-test-auto-publish git@gitlab.e.foundation:e/os/android_prebuilts_prebuiltapks_lfs.git - cd android_prebuilts_prebuiltapks_lfs - rm Apps/*-release.apk - mv ../${NEW_APK_PATH}/${NEW_APK_NAME} Apps/ - sed -i "6s/.*/LOCAL_SRC_FILES := ${NEW_APK_NAME}/" Apps/Android.mk # todo: improve to replace - ls -l Apps # Debug only - sed -i "6s/.*/LOCAL_SRC_FILES := ${NEW_APK_NAME}/" Apps/Android.mk # todo: improve to replace based on REGEX¨P and not line number - git config user.email "gitlab@e.foundation" - git config user.name "gitlab" - git add Apps - git status - git commit -m "Update Apps Lounge apk to ${NEW_APK_VERSION}" - git push - git push No newline at end of file Loading
.gitlab-ci.yml +4 −5 Original line number Diff line number Diff line Loading @@ -146,17 +146,16 @@ pushToPrebuilt: - NEW_APK_VERSION=$(awk -F '-' '{print $2}' <<< "$NEW_APK_NAME") - echo $NEW_APK_NAME - echo $NEW_APK_VERSION # - git lfs clone git@gitlab.e.foundation:e/os/android_prebuilts_prebuiltapks_lfs.git - git lfs clone -b 55-test-auto-publish git@gitlab.e.foundation:e/os/android_prebuilts_prebuiltapks_lfs.git - cd android_prebuilts_prebuiltapks_lfs - rm Apps/*-release.apk - mv ../${NEW_APK_PATH}/${NEW_APK_NAME} Apps/ - sed -i "6s/.*/LOCAL_SRC_FILES := ${NEW_APK_NAME}/" Apps/Android.mk # todo: improve to replace - ls -l Apps # Debug only - sed -i "6s/.*/LOCAL_SRC_FILES := ${NEW_APK_NAME}/" Apps/Android.mk # todo: improve to replace based on REGEX¨P and not line number - git config user.email "gitlab@e.foundation" - git config user.name "gitlab" - git add Apps - git status - git commit -m "Update Apps Lounge apk to ${NEW_APK_VERSION}" - git push - git push No newline at end of file