Explorar el Código

Merge pull request #509 from netbootxyz/nbxyz_menu

Prevent after_deploy from running multiple times
Antony Messerli hace 5 años
padre
commit
11e89d232b
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      .travis.yml

+ 6 - 2
.travis.yml

@@ -46,8 +46,12 @@ jobs:
           on:
             branch: development
       after_deploy:
-        - ./script/message dev-push
-
+        - >
+          if ! [ "$AFTER_DEPLOY_RUN" ]; then
+            export AFTER_DEPLOY_RUN=1;
+            ./script/message dev-push
+          fi
+          
     - stage: pull-request
       if: type = pull_request
       script: