gitlab-ci: fix creation of 'fdroid build' job

This should be run on all branches in forks and all merge requests, as
long as they change a metadata file.  Unfortunately gitlab-ci's "changes"
logic is not as sophisticated as the logic written in the job for detecting
which files changed.  gitlab-ci's logic only detects changes that happened
in the current push event, this job's logic compares to master.

Using gitlab-ci's "changes" logic means that if someone changed a metadata
file in a merge request, "fdroid build" would be triggered.  If they then
updated the merge request with a change to another file, then the next run
would not include a "fdroid build" job, since no metadata file was changed
in that push.
This commit is contained in:
Hans-Christoph Steiner 2020-06-19 09:44:10 +02:00
parent 5a4b29f0be
commit 626bcdb8d1
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA

View file

@ -122,8 +122,7 @@ fdroid build:
when: always
expire_in: 1 month
only:
changes:
- metadata/*.yml
- branches
except:
- master@fdroid/fdroiddata
cache: