1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-05-04 01:09:54 +02:00

Revert "Fix caching directories outside of the working directory (relative paths)"

This commit is contained in:
alivahabi2112 2020-04-12 06:13:41 +04:30 committed by GitHub
parent 78809b91d7
commit 143c84bf60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 48 deletions

View file

@ -7,12 +7,6 @@ if [ -z "$prefix" ]; then
exit 1
fi
path="$2"
if [ -z "$path" ]; then
echo "Must specify path argument"
exit 1
fi
# Sanity check GITHUB_RUN_ID defined
if [ -z "$GITHUB_RUN_ID" ]; then
echo "GITHUB_RUN_ID not defined"
@ -20,7 +14,7 @@ if [ -z "$GITHUB_RUN_ID" ]; then
fi
# Verify file exists
file="$path/test-file.txt"
file="test-cache/test-file.txt"
echo "Checking for $file"
if [ ! -e $file ]; then
echo "File does not exist"
@ -33,4 +27,4 @@ echo "File content:\n$content"
if [ -z "$(echo $content | grep --fixed-strings "$prefix $GITHUB_RUN_ID")" ]; then
echo "Unexpected file content"
exit 1
fi
fi