Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 5393e52

Browse files
authored
[drone] Update drone for PR builds
1 parent c646c4a commit 5393e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ services:
9494
SUBSCRIPTION_SCHEDULER__ENABLED: false
9595
commands:
9696
- apk add build-base git libffi-dev cargo
97-
- BRANCH=$(echo $DRONE_COMMIT_BRANCH)
98-
- OPENCTI_BRANCH=$([ $(echo $BRANCH | cut -d "/" -f 1) == opencti ] && echo issue/$(echo $BRANCH | cut -d "/" -f 2) || echo 'master' )
97+
- BRANCH=$(echo $DRONE_SOURCE_BRANCH)
98+
- OPENCTI_BRANCH=$([ $(echo $BRANCH | cut -d "/" -f 1) == opencti ] && echo $(echo $BRANCH | cut -d "/" -f2-) || echo 'master' )
9999
- git clone -b $OPENCTI_BRANCH https://github.com/OpenCTI-Platform/opencti.git /tmp/opencti
100100
- cd /tmp/opencti/opencti-platform/opencti-graphql
101101
- OPENCTI_COMMIT=$(git rev-parse --short HEAD)

0 commit comments

Comments
 (0)