fix some pipelines missing for commits in default branch

This commit is contained in:
proletarius101 2022-07-21 16:09:30 +08:00
parent 43b80d96bd
commit 2c14733bab
No known key found for this signature in database
GPG key ID: AD34DEC6F77D5511

View file

@ -43,7 +43,7 @@ variables:
.get_target_source_refs: &get_target_source_refs
- |
if [ "$CI_PROJECT_PATH" = "fdroid/fdroiddata" ] && [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then
export TARGET_REF="${CI_COMMIT_SHA}^"
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