Skip to content
Snippets Groups Projects
Unverified Commit 0e245f1c authored by Sébastien Blin's avatar Sébastien Blin
Browse files

fdroid: push MR on dedicated branch

Change-Id: I7cbc5d8d8d4f70e5ae41e7c16e689ce08f0e7ee5
parent 4e778474
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,10 @@ then ...@@ -28,10 +28,10 @@ then
git -C fdroiddata pull --rebase git -C fdroiddata pull --rebase
else else
echo "fdroiddata repository does not exists" echo "fdroiddata repository does not exists"
git clone git@gitlab.com:fdroid/fdroiddata.git git clone git@gitlab.com:savoirfairelinux/fdroiddata.git
fi fi
git -C fdroiddata remote add upstream git@gitlab.com:savoirfairelinux/fdroiddata.git git -C fdroiddata remote add upstream git@gitlab.com:fdroid/fdroiddata.git
git -C fdroiddata fetch upstream || exit git -C fdroiddata fetch upstream || exit
git -C fdroiddata status git -C fdroiddata status
git -C fdroiddata checkout upstream/master git -C fdroiddata checkout upstream/master
...@@ -66,10 +66,13 @@ echo "Current Version Code:${versionCode}" >> ${METADATA_FOLDER}/cx.ring.txt ...@@ -66,10 +66,13 @@ echo "Current Version Code:${versionCode}" >> ${METADATA_FOLDER}/cx.ring.txt
rm ${METADATA_FOLDER}/cx.ring.txt_ rm ${METADATA_FOLDER}/cx.ring.txt_
releaseDate=`date +\"%Y%m\"`
releaseBranch="release/${releaseDate}"
git -C fdroiddata add metadata/cx.ring.txt git -C fdroiddata add metadata/cx.ring.txt
git -C fdroiddata commit -s -m "Updates Jami to $versionName" git -C fdroiddata commit -s -m "Updates Jami to $versionName"
git -C fdroiddata status git -C fdroiddata status
git -C fdroiddata push origin HEAD:master git -C fdroiddata push origin HEAD:${releaseBranch}
FDROID_METADATA_PROJECT_ID=36528 FDROID_METADATA_PROJECT_ID=36528
SFL_METADATA_PROJECT_ID=10540147 SFL_METADATA_PROJECT_ID=10540147
...@@ -83,7 +86,7 @@ if [ $# -ge 4 ] ; then ...@@ -83,7 +86,7 @@ if [ $# -ge 4 ] ; then
\"id\": 1, \"id\": 1,
\"title\": \"New Jami revision\", \"title\": \"New Jami revision\",
\"target_branch\": \"master\", \"target_branch\": \"master\",
\"source_branch\": \"master\", \"source_branch\": \"${releaseBranch}\",
\"target_project_id\": ${FDROID_METADATA_PROJECT_ID} \"target_project_id\": ${FDROID_METADATA_PROJECT_ID}
}" }"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment