Skip to content

Commit

Permalink
add multisite config to the fixture site
Browse files Browse the repository at this point in the history
this shouldn't need to be done every time, so we check if multisite is true and add the config if it's not true
  • Loading branch information
jazzsequence committed Jul 31, 2024
1 parent 3b5ec90 commit b4d0bab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,18 @@ jobs:
echo "Clone the site locally and copy PR updates"
terminus local:clone ${{ env.SITE_ID }}
cd ~/pantheon-local-copies/"${{ env.SITE_ID }}"
if ! terminus wp "${{ env.SITE_ID }}".dev -- config is-true MULTISITE; then
echo "Multisite not configured yet..."
echo "Copying multisite application.php"
rm ~/pantheon-local-copies/${{ env.SITE_ID }}/config/application.php
cp "${{ github.workspace }}/.github/fixtures/config/application.subdom.php" ~/pantheon-local-copies/${{ env.SITE_ID }}/config/
mv ~/pantheon-local-copies/${{ env.SITE_ID }}/config/application.${type}.php" ~/pantheon-local-copies/${{ env.SITE_ID }}/config/application.php
cd ~/pantheon-local-copies/"${{ env.SITE_ID }}"
git add ~/pantheon-local-copies/${{ env.SITE_ID }}/config/application.php
git commit -m "Set up ${type} multisite config" || true
fi
echo "Copying latest changes and committing to the site."
rsync -a --exclude='.git' --exclude='status-*.txt' --exclude="node_modules" "${{ github.workspace }}/" .
git add -A
Expand Down

0 comments on commit b4d0bab

Please sign in to comment.