Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cce1cf8 authored by Jackeagle's avatar Jackeagle
Browse files

Merge branch '2217-master-create-new-tag-repo-fail' into 'master'

create_new_tag: Fail pipeline if repo sync fails

See merge request e/os/releases!236
parents ae624026 450d0e49
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -45,7 +45,11 @@ clone_and_parse_project_manifest () {
sync_main_manifest(){
    cd "$SRC_DIR/$CI_COMMIT_REF_NAME"
    repo init --depth 1 -u $REPO -b $1
    repo sync -c --force-sync --force-sync --force-remove-dirty --prune -v
    repo sync -c --force-sync --force-remove-dirty --prune -v
    if [ $? -ne 0 ]; then
        echo "repo sync failed"
        exit 1
    fi
}

# Identify new tag name