travis-ci / dpl

Dpl (dee-pee-ell) is a deploy tool made for continuous deployment.
MIT License
1.29k stars 367 forks source link

Travis infinite loop #1215

Closed bmartinez287 closed 4 years ago

bmartinez287 commented 4 years ago
after_success: 
   - git add .
   - git commit -m "[skip travis] Adding particle dist/ assets"
deploy:
  provider: pages
  skip_cleanup: true
  keep_history: true
  github_token: ${GITHUB_API_KEY}  # Your GitHub token set in Travis CI console
  target_branch: develop        # Add this line - To push into GitHub master branch
  on:
    branch: develop

The Travis deploy for the dist assets keeps triggering the Travis bot on the develop branch infinitely. How do I set a conditional to tell it to run once per merge PR?

In other words, I want to accomplish the following. Merge the PR and automatically compile and commit the dist folder with its changes. That said I only need that to happen once. Right now that triggers the Travis bot on a loop.