From a3a9a532b36a00b392f5c408051f791166c7dbe8 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sat, 30 Dec 2023 14:02:41 +0100 Subject: fix permissions on artifacts --- download_artifact.sh | 4 +++- save_artifact.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 download_artifact.sh diff --git a/download_artifact.sh b/download_artifact.sh old mode 100644 new mode 100755 index 72e3f80..5a1e791 --- a/download_artifact.sh +++ b/download_artifact.sh @@ -10,9 +10,11 @@ basename="$(basename $path_to_file)" curl "https://git.mrcyjanek.net/api/packages/mrcyjanek/generic/monero_c/${cache_name}-${cache_key}/${basename}" > /tmp/cache || exit 0 if [[ "xpackage does not exist" == "x$(head -1 /tmp/cache)" ]]; then - echo "Cache miss $@" + echo "Cache miss '$1' '$2' '$basename'" rm /tmp/cache exit 0 +else + echo "Cache hit '$1' '$2' '$basename'" fi mkdir -p $path_to_file diff --git a/save_artifact.sh b/save_artifact.sh index e300e6f..195ed34 100755 --- a/save_artifact.sh +++ b/save_artifact.sh @@ -11,4 +11,5 @@ basename="$(basename $path_to_file)" curl --user $registry_user:$PAT_SECRET_PACKAGE \ --upload-file "$path_to_file" \ "https://git.mrcyjanek.net/api/packages/mrcyjanek/generic/monero_c/${cache_name}-${cache_key}/${basename}" + rm $path_to_file \ No newline at end of file -- cgit v1.2.3