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 99 runs-on : ubuntu-latest
1010 steps :
1111 - name : Checkout
12- uses : actions/checkout
12+ uses : actions/checkout@v4
1313 with :
1414 fetch-depth : 0 # Required to make it possible to compare with PR base branch
1515
Original file line number Diff line number Diff line change 1616 # Deploy the plugin to WordPress.org
1717 - name : WordPress plugin deploy
1818 id : deploy
19- uses : 10up/action-wordpress-plugin-deploy@stable
19+ uses : 10up/action-wordpress-plugin-deploy@develop
2020 with :
2121 generate-zip : true
2222 env :
Original file line number Diff line number Diff line change @@ -13,6 +13,32 @@ if [ $# -lt 3 ]; then
1313 exit 1
1414fi
1515
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+
1642DB_NAME=$1
1743DB_USER=$2
1844DB_PASS=$3
You can’t perform that action at this time.
0 commit comments