From 6778818cba8736ea349533fbd8452415ac01be9c Mon Sep 17 00:00:00 2001 From: Boris Rybalkin Date: Mon, 31 Aug 2026 22:24:18 +0300 Subject: [PATCH] build only on push and tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pipeline had no trigger block, so Drone fell back to its default of building every event. Opening a pull request therefore produced a second, identical build alongside the one for the branch push — see builds 103 and 104, both on b5dd403e. Restricting to push covers branches and master. Tag has to stay in the list because the github-release step is gated on `when: event: tag`, and a trigger without it would stop tag builds entirely and silently end APK publishing. This is why the bitwarden pipeline's `event: ['push']` cannot be copied here verbatim. --- .drone.jsonnet | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index c0b9ce6..d2f0ce4 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -68,7 +68,10 @@ local build() = { status: [ "failure", "success" ] } } - ] + ], + trigger: { + event: [ "push", "tag" ] + } }; [