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

Commit 450d0e49 authored by Jackeagle's avatar Jackeagle
Browse files

create_new_tag: Fail pipeline if repo sync fails

parent ae624026
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