Browse Source

Prevent after_deploy from running multiple times

Currently after_deploy runs after each deploy and generates
double notifications in discord
Antony Messerli 5 năm trước cách đây
mục cha
commit
00cca41493
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  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: