Skip to content

Commit 95a8cdc

Browse files
committed
Auto stash before merge of "internal/TMZ-803-update-publish-script" and "origin/internal/TMZ-803-update-publish-script"
1 parent 866e26b commit 95a8cdc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/scripts/publish-theme-to-wordpress-org.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
#!/bin/bash
22
set -eo pipefail
33

4-
if [[ -z "$SVN_USERNAME" ]]; then
5-
echo "Set the SVN_USERNAME secret"
6-
exit 1
7-
fi
8-
9-
if [[ -z "$SVN_PASSWORD" ]]; then
10-
echo "Set the SVN_PASSWORD secret"
11-
exit 1
12-
fi
13-
144
if [[ -z "$THEME_VERSION" ]]; then
155
echo "Set the THEME_VERSION env var"
166
exit 1
@@ -63,6 +53,16 @@ svn status
6353

6454
cd $SVN_PATH
6555

56+
if [[ -z "$SVN_USERNAME" ]]; then
57+
echo "Set the SVN_USERNAME secret"
58+
exit 1
59+
fi
60+
61+
if [[ -z "$SVN_PASSWORD" ]]; then
62+
echo "Set the SVN_PASSWORD secret"
63+
exit 1
64+
fi
65+
6666
echo "Commit files to version folder $VERSION_DIR"
6767
svn ci -m "Upload v${THEME_VERSION}" --no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
6868
svn update

0 commit comments

Comments
 (0)