From 7ca91cf882bbc245337a2f5f487476c3232d618d Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 3 Dec 2020 14:56:11 +0100 Subject: [PATCH] Don't run caching steps on CI when not master or PR --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index d38f769..8d07bcf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,6 +12,9 @@ steps: restore: true mount: - vendor + when: + branch: + - master - name: rspec image: guildeducation/rails:2.7.1-12.19.0 commands: @@ -30,6 +33,9 @@ steps: rebuild: true mount: - vendor + when: + branch: + - master volumes: - name: cache