mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-20 19:25:15 +08:00
Add path argument to create-cache-files.sh
This commit is contained in:
parent
4a724707e9
commit
64f8769515
1 changed files with 8 additions and 2 deletions
|
@ -7,5 +7,11 @@ if [ -z "$prefix" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
mkdir test-cache
|
||||
echo "$prefix $GITHUB_RUN_ID" > test-cache/test-file.txt
|
||||
path="$2"
|
||||
if [ -z "$path" ]; then
|
||||
echo "Must supply path argument"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p $path
|
||||
echo "$prefix $GITHUB_RUN_ID" > $path/test-file.txt
|
||||
|
|
Loading…
Reference in a new issue