From 7f0b9bb54ce7e4235dc62b2157ce40424088f76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Fri, 8 Oct 2021 07:54:34 +0200 Subject: [PATCH] retrieve branch from travis env --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 51902a7..cc7094e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,8 +15,6 @@ install: - pip install GitPython script: - - git status - - GIT_BRANCH=$(python3 -c "import git; print(git.Repo().active_branch.name)") - python3 -c 'from build import build; build("build/LatexPackages/")' - cd build - zip -r LatexPackages.zip LatexPackages @@ -44,8 +42,9 @@ deploy: commiter_from_gh: true allow_empty_commit: true keep-history: true - target_branch: $GIT_BRANCH + target_branch: $TRAVIS_BRANCH on: branches: only: - /.*/ + condition: $TRAVIS_PULL_REQUEST = false