mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-05-18 11:49:12 +00:00
[ci] check diff with common ancestor
This commit is contained in:
parent
cff38f73b8
commit
e03c2dcf57
1 changed files with 3 additions and 2 deletions
|
|
@ -46,8 +46,9 @@ variables:
|
|||
export TARGET_REF="${CI_COMMIT_BEFORE_SHA}"
|
||||
export SOURCE_REF="${CI_COMMIT_SHA}"
|
||||
else
|
||||
git fetch https://gitlab.com/fdroid/fdroiddata.git $CI_DEFAULT_BRANCH
|
||||
export TARGET_REF="FETCH_HEAD"
|
||||
git remote add upstream https://gitlab.com/fdroid/fdroiddata.git
|
||||
git fetch upstream ${CI_DEFAULT_BRANCH}
|
||||
export TARGET_REF=$(git merge-base --fork-point upstream/${CI_DEFAULT_BRANCH})
|
||||
export SOURCE_REF="${CI_COMMIT_SHA}"
|
||||
fi;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue