We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 866e26b commit 95a8cdcCopy full SHA for 95a8cdc
1 file changed
.github/scripts/publish-theme-to-wordpress-org.sh
@@ -1,16 +1,6 @@
1
#!/bin/bash
2
set -eo pipefail
3
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
12
13
14
if [[ -z "$THEME_VERSION" ]]; then
15
echo "Set the THEME_VERSION env var"
16
exit 1
@@ -63,6 +53,16 @@ svn status
63
53
64
54
cd $SVN_PATH
65
55
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"
66
echo "Commit files to version folder $VERSION_DIR"
67
svn ci -m "Upload v${THEME_VERSION}" --no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
68
svn update
0 commit comments