mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	gitlab-ci: make gradle job show files with trigger it
For some reason, this logic thinks that this merge request has changed makebuildserver and/or gradlew-fdroid, though it clearly has not. This should shed some light on it. https://gitlab.com/fdroid/fdroidserver/-/jobs/9835383262
This commit is contained in:
		
							parent
							
								
									f281068cbf
								
							
						
					
					
						commit
						677301bc8a
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
					@ -469,6 +469,8 @@ macOS:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gradle:
 | 
					gradle:
 | 
				
			||||||
  image: debian:bookworm-slim
 | 
					  image: debian:bookworm-slim
 | 
				
			||||||
 | 
					  rules:
 | 
				
			||||||
 | 
					    - if: "$PERSONAL_ACCESS_TOKEN"
 | 
				
			||||||
  <<: *apt-template
 | 
					  <<: *apt-template
 | 
				
			||||||
  variables:
 | 
					  variables:
 | 
				
			||||||
    GIT_DEPTH: 1000
 | 
					    GIT_DEPTH: 1000
 | 
				
			||||||
| 
						 | 
					@ -485,12 +487,15 @@ gradle:
 | 
				
			||||||
          python3-requests
 | 
					          python3-requests
 | 
				
			||||||
    # if this is a merge request fork, then only check if relevant files changed
 | 
					    # if this is a merge request fork, then only check if relevant files changed
 | 
				
			||||||
    - if [ "$CI_PROJECT_NAMESPACE" != "fdroid" ]; then
 | 
					    - if [ "$CI_PROJECT_NAMESPACE" != "fdroid" ]; then
 | 
				
			||||||
 | 
					        set -x;
 | 
				
			||||||
        git fetch https://gitlab.com/fdroid/fdroidserver.git;
 | 
					        git fetch https://gitlab.com/fdroid/fdroidserver.git;
 | 
				
			||||||
        for f in `git diff --name-only --diff-filter=d FETCH_HEAD...HEAD`; do
 | 
					        for f in `git diff --name-only --diff-filter=d FETCH_HEAD...HEAD`; do
 | 
				
			||||||
           test "$f" == "makebuildserver" && export CHANGED="yes";
 | 
					           test "$f" == "makebuildserver" && export CHANGED="$f $CHANGED";
 | 
				
			||||||
           test "$f" == "gradlew-fdroid" && export CHANGED="yes";
 | 
					           test "$f" == "gradlew-fdroid" && export CHANGED="$f $CHANGED";
 | 
				
			||||||
        done;
 | 
					        done;
 | 
				
			||||||
        test -z "$CHANGED" && exit;
 | 
					        test -z "$CHANGED" && exit;
 | 
				
			||||||
 | 
					        echo $CHANGED;
 | 
				
			||||||
 | 
					        set +x;
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
    - ./tests/gradle-release-checksums.py
 | 
					    - ./tests/gradle-release-checksums.py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue