Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevoss committed Jul 23, 2024
1 parent da71529 commit 0eec4d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-wp-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ runs:
INPUT_MAPPINGS: ${{ inputs.mappings }}
ACTION_PATH: ${{ github.action_path }}
run: |
npx zx@8 $ACTION_PATH/dist/setup-wp-env/create-wp-env-config.js \
npx zx@8 $ACTION_PATH/../../../dist/setup-wp-env/create-wp-env-config.js \
--wp="$INPUT_WP" \
--php="$INPUT_PHP" \
--plugins="$INPUT_PLUGINS" \
Expand Down
3 changes: 2 additions & 1 deletion src/setup-wp-env/create-wp-env-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ async function main() {
afterStart: prepareCommands(
['cli', 'tests-cli'],
[
activeTheme && `wp theme activate ${activeTheme}`,
activeTheme &&
`INPUT_ACTIVE_THEME="${activeTheme}" && wp theme activate "$INPUT_ACTIVE_THEME"`,
`wp rewrite structure '/%postname%' --hard`,
],
),
Expand Down

0 comments on commit 0eec4d0

Please sign in to comment.