Преглед на файлове

scripts: Have Drone properly signoff commits so that it doesn't break DCO

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Co-Authered-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Andy Scherzinger преди 3 години
родител
ревизия
792ea45bab
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      scripts/analysis/findbugs-up.rb
  2. 1 1
      scripts/analysis/lint-up.rb

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

@@ -126,7 +126,7 @@ system ("git remote add origin https://" + git_user + ":" + git_token + "@github
 system ('git add ' + PREVIOUS_FINDBUGS_RESULTS_FILE)
 system ('git add ' + PREVIOUS_FINDBUGS_RESULTS_FILE)
 
 
 # commit changes; Add "skip ci" so that we don't accidentally trigger another Drone build
 # commit changes; Add "skip ci" so that we don't accidentally trigger another Drone build
-system ('git commit -sm "Drone: update FindBugs results to reflect reduced error/warning count [skip ci]" ')
+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
 # push to origin
 system ('git push origin HEAD:' + git_branch)
 system ('git push origin HEAD:' + git_branch)

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

@@ -186,7 +186,7 @@ system ("git remote add origin https://" + git_user + ":" + git_token + "@github
 system ('git add ' + PREVIOUS_LINT_RESULTS_FILE)
 system ('git add ' + PREVIOUS_LINT_RESULTS_FILE)
 
 
 # commit changes; Add "skip ci" so that we don't accidentally trigger another Drone build
 # commit changes; Add "skip ci" so that we don't accidentally trigger another Drone build
-system ('git commit -sm "Drone: update Lint results to reflect reduced error/warning count [skip ci]" ')
+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
 # push to origin
 system ('git push origin HEAD:' + git_branch)
 system ('git push origin HEAD:' + git_branch)