From a28fc42469ec1e0bd13a2d8a1e6f473853afb894 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 17 Feb 2019 13:37:26 +0800 Subject: [PATCH] fix: trigger ref --- .drone.jsonnet | 6 +++++- .drone.yml | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 4951708..6f55466 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -260,7 +260,11 @@ local PipelineNotifications(os='linux', arch='amd64', depends_on=[]) = { ], depends_on: depends_on, trigger: { - event: [ 'push', 'tag' ], + ref: [ + 'refs/heads/master', + 'refs/pull/**', + 'refs/tags/**', + ], }, }; diff --git a/.drone.yml b/.drone.yml index 34b925c..2df84c6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -375,9 +375,10 @@ steps: from_secret: microbadger_url trigger: - event: - - push - - tag + ref: + - refs/heads/master + - "refs/pull/**" + - "refs/tags/**" depends_on: - linux-amd64