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>
This commit is contained in:
Álvaro Brey Vilas 2022-03-08 13:15:57 +01:00
parent 59751c2fda
commit 2a8123210a
No known key found for this signature in database
GPG key ID: 2585783189A62105
2 changed files with 2 additions and 2 deletions

View file

@ -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}'")

View file

@ -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