Sfoglia il codice sorgente

Merge pull request #2450 from overleaf/csh-issue-730-copybara-flag

Make copybara conditional

GitOrigin-RevId: 04ec7af1820b9e594af6a1f845fd09d12ea57d61
Christopher Hoskin 6 anni fa
parent
commit
2cb158340d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      services/web/bin/invoke-copybara

+ 1 - 1
services/web/bin/invoke-copybara

@@ -2,7 +2,7 @@
 
 
 KNOWN_HOSTS=/root/.ssh/known_hosts 
 KNOWN_HOSTS=/root/.ssh/known_hosts 
 
 
-if [[ "$BRANCH_NAME" == "master" ]]; then
+if [[ "$BRANCH_NAME" == "master" && "$COPYBARA" == "run" ]]; then
   set -e
   set -e
   chmod -R 0600 /root/.ssh
   chmod -R 0600 /root/.ssh
   ssh-keyscan github.com > $KNOWN_HOSTS
   ssh-keyscan github.com > $KNOWN_HOSTS