We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39c57d5 commit 43e313aCopy full SHA for 43e313a
1 file changed
deploy.sh
@@ -38,12 +38,18 @@ if [[ -z "$ASSETS_DIR" ]]; then
38
fi
39
echo "ℹ︎ ASSETS_DIR is $ASSETS_DIR"
40
41
-if [[ -z "$BUILD_DIR" ]]; then
+if [[ -z "$BUILD_DIR" ]] || [[ $BUILD_DIR == "./" ]]; then
42
BUILD_DIR=false
43
-elif [[ $BUILD_DIR != /* ]]; then
44
- BUILD_DIR="${GITHUB_WORKSPACE%/}/${BUILD_DIR}"
+elif [[ $BUILD_DIR == ./* ]]; then
+ BUILD_DIR=${BUILD_DIR:2}
45
+fi
46
+
47
+if [[ "$BUILD_DIR" != false ]]; then
48
+ if [[ $BUILD_DIR != /* ]]; then
49
+ BUILD_DIR="${GITHUB_WORKSPACE%/}/${BUILD_DIR}"
50
+ fi
51
+ echo "ℹ︎ BUILD_DIR is $BUILD_DIR"
52
-echo "ℹ︎ BUILD_DIR is $BUILD_DIR"
53
54
SVN_URL="https://plugins.svn.wordpress.org/${SLUG}/"
55
SVN_DIR="${HOME}/svn-${SLUG}"
0 commit comments