This PR makes the cache's root directory (key) to be branch based rather than job number based.
Not sure why this was originally job number based. Having a cache key based on job numbers does not make any sense (cache invalidates across jobs?).
I have two deployments of Drone and both of them return "1" for $DRONE_JOB_NUMBER all the time, resulting the cache to be located under /cache/<owner>/<repo>/1 regardless.
This PR makes the cache's root directory (key) to be branch based rather than job number based.
Not sure why this was originally job number based. Having a cache key based on job numbers does not make any sense (cache invalidates across jobs?).
I have two deployments of Drone and both of them return "1" for
$DRONE_JOB_NUMBER
all the time, resulting the cache to be located under/cache/<owner>/<repo>/1
regardless.