Skip to content

Commit 6bcb953

Browse files
committed
ci: always preserve the cache even for failing jobs
1 parent 6411c8d commit 6bcb953

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ variables:
2525
# Cached directories shared between jobs & pipelines per-branch per-runner
2626
cache:
2727
key: $CI_COMMIT_REF_SLUG
28+
# Preserve cache even if job fails
29+
when: 'always'
2830
paths:
2931
- ./tmp/npm/
3032
- ./tmp/ts-node-cache/

0 commit comments

Comments
 (0)