Skip to content

Commit

Permalink
Merge pull request #62 from 10up/fix/install-svn
Browse files Browse the repository at this point in the history
Add SVN as a part of the workflow
  • Loading branch information
peterwilsoncc authored Jan 14, 2025
2 parents 6408ae8 + 59dce06 commit fdd6f17
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,32 @@
# doesn't match I want to be able to show an error first
set -eo

# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}

# Check if SVN is installed
if command_exists svn; then
echo "SVN is already installed."
else
echo "SVN is not installed. Installing SVN..."

# Update the package list
sudo apt-get update -y

# Install SVN
sudo apt-get install -y subversion

# Verify installation
if command_exists svn; then
echo "SVN was successfully installed."
else
echo "Failed to install SVN. Please check your system configuration."
exit 1
fi
fi

# Ensure SVN username and password are set
# IMPORTANT: while secrets are encrypted and not viewable in the GitHub UI,
# they are by necessity provided as plaintext in the context of the Action,
Expand Down

0 comments on commit fdd6f17

Please sign in to comment.