Don't run caching steps on CI when not master or PR
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Basti 2020-12-03 14:56:11 +01:00
parent 022094ce51
commit 7ca91cf882
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72

View File

@ -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