diff options
| -rwxr-xr-x[-rw-r--r--] | download_artifact.sh | 4 | ||||
| -rwxr-xr-x | save_artifact.sh | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/download_artifact.sh b/download_artifact.sh index 72e3f80..5a1e791 100644..100755 --- 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 |
