Эх сурвалжийг харах

Analysis scripts: fix push

I am TIRED of fighting with this scripts and Github actions

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Álvaro Brey Vilas 3 жил өмнө
parent
commit
2a8123210a

+ 1 - 1
scripts/analysis/findbugs-up.rb

@@ -118,7 +118,7 @@ system ('git add ' + PREVIOUS_FINDBUGS_RESULTS_FILE)
 system({"GIT_COMMITTER_EMAIL" => "drone@nextcloud.com", "GIT_AUTHOR_EMAIL" => "drone@nextcloud.com"}, 'git commit -sm "Drone: update FindBugs results to reflect reduced error/warning count [skip ci]"')
 
 # push to origin
-system ('git push')
+system ('git push origin HEAD:' + git_branch)
 
 # restore previous git user name and email
 system("git config --local user.name '#{previous_git_username}'")

+ 1 - 1
scripts/analysis/lint-up.rb

@@ -187,7 +187,7 @@ system ('git add ' + PREVIOUS_LINT_RESULTS_FILE)
 system({"GIT_COMMITTER_EMAIL" => "drone@nextcloud.com", "GIT_AUTHOR_EMAIL" => "drone@nextcloud.com"}, 'git commit -sm "Drone: update Lint results to reflect reduced error/warning count [skip ci]"')
 
 # push to origin
-system ('git push')
+system ('git push origin HEAD:' + git_branch)
 
 puts "SUCCESS: count was reduced"
 exit 0 # success