From dab29fefff3b2623e6b1f9f16d27cb1e385423c1 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sun, 31 Dec 2023 00:05:42 +0100 Subject: CI: don't push downloaded cache --- save_artifact.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'save_artifact.sh') diff --git a/save_artifact.sh b/save_artifact.sh index c28fd37..a58d6d2 100755 --- a/save_artifact.sh +++ b/save_artifact.sh @@ -5,6 +5,13 @@ registry_user=mrcyjanek cache_name="$1" cache_key="$2" path_to_file_="$3" + +if [[ -f "/tmp/cache_hit_$(echo "$3" | md5sum)" ]]; +then + echo "was cached $1 $2 $(basename $path_to_file_)" + exit 0 +fi + path_to_file="$3.xz" basename="$(basename $path_to_file)" -- cgit v1.2.3