diff options
author | Joas Schilling <coding@schilljs.com> | 2022-08-09 17:49:57 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-08-09 17:49:57 +0300 |
commit | e321c02b2531e72bd86fd922134a336150187bf9 (patch) | |
tree | 4cb8b8adeb871100362f9cd7d1e10dea17795528 /.drone.yml | |
parent | a7a56a64a48e6e7cc0b26ef0713af4f7920e9ec1 (diff) |
Fix branch detection for drone PRs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml index e34bf032f..559e40412 100644 --- a/.drone.yml +++ b/.drone.yml @@ -94,7 +94,7 @@ steps: LOG_PASSWORD: from_secret: LOG_PASSWORD commands: - - export BRANCH=$(git branch | grep '*' | cut -d' ' -f2) + - export BRANCH=$(scripts/analysis/getBranchName.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST) - scripts/analysis/analysis-wrapper.sh $GIT_USERNAME $GIT_TOKEN $BRANCH $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER $DRONE_PULL_REQUEST - name: notify |