Skip to content

Commit

Permalink
Install SVN if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Dec 20, 2024
1 parent 96dc24a commit 71b228c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ jobs:
restore-keys: test-dependencies-{{ checksum "composer.json" }}
- name: Setup WP-CLI
uses: godaddy-wordpress/setup-wp-cli@1
- name: Install SVN if needed
run: |
if ! command -v svn &> /dev/null; then
echo "SVN is not installed. Installing now..."
sudo apt-get update
sudo apt-get install -y subversion
fi
- name: Install Composer dependencies
run: |
if [ ${{ matrix.php_version }} = "7.4" ]; then
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/wordpress-plugin-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ jobs:
if: ${{ ! github.event.release.prerelease }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install SVN if needed
run: |
if ! command -v svn &> /dev/null; then
echo "SVN is not installed. Installing now..."
sudo apt-get update
sudo apt-get install -y subversion
fi
- name: WordPress Plugin Deploy
uses: 10up/[email protected]
env:
Expand Down

0 comments on commit 71b228c

Please sign in to comment.