File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- name : Checkout
12
- uses : actions/checkout
12
+ uses : actions/checkout@v4
13
13
with :
14
14
fetch-depth : 0 # Required to make it possible to compare with PR base branch
15
15
Original file line number Diff line number Diff line change 16
16
# Deploy the plugin to WordPress.org
17
17
- name : WordPress plugin deploy
18
18
id : deploy
19
- uses : 10up/action-wordpress-plugin-deploy@stable
19
+ uses : 10up/action-wordpress-plugin-deploy@develop
20
20
with :
21
21
generate-zip : true
22
22
env :
Original file line number Diff line number Diff line change @@ -13,6 +13,32 @@ if [ $# -lt 3 ]; then
13
13
exit 1
14
14
fi
15
15
16
+ # Function to check if a command exists
17
+ command_exists () {
18
+ command -v " $1 " > /dev/null 2>&1
19
+ }
20
+
21
+ # Check if SVN is installed
22
+ if command_exists svn; then
23
+ echo " SVN is already installed."
24
+ else
25
+ echo " SVN is not installed. Installing SVN..."
26
+
27
+ # Update the package list
28
+ sudo apt-get update -y
29
+
30
+ # Install SVN
31
+ sudo apt-get install -y subversion
32
+
33
+ # Verify installation
34
+ if command_exists svn; then
35
+ echo " SVN was successfully installed."
36
+ else
37
+ echo " Failed to install SVN. Please check your system configuration."
38
+ exit 1
39
+ fi
40
+ fi
41
+
16
42
DB_NAME=$1
17
43
DB_USER=$2
18
44
DB_PASS=$3
You can’t perform that action at this time.
0 commit comments