2020-02-14 01:38:56 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Validate args
|
|
|
|
prefix="$1"
|
|
|
|
if [ -z "$prefix" ]; then
|
|
|
|
echo "Must supply prefix argument"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-04-08 11:29:07 +08:00
|
|
|
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
|