Compare commits
1 Commits
99c98fa0b4
...
07ec832837
| Author | SHA1 | Date | |
|---|---|---|---|
| 07ec832837 |
10
action.yml
10
action.yml
@@ -43,7 +43,7 @@ inputs:
|
||||
description: 'Comma-separated list of PHP extensions to install'
|
||||
required: false
|
||||
default: 'mbstring, xml, ctype, json, curl, zip'
|
||||
web-config:
|
||||
nginx-config:
|
||||
description: 'Path to nginx configuration file (optional)'
|
||||
required: false
|
||||
default: ''
|
||||
@@ -140,7 +140,7 @@ runs:
|
||||
coverage: none
|
||||
|
||||
- name: Install nginx
|
||||
if: inputs.install-web-server == 'true'
|
||||
if: inputs.install-nginx == 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
echo "::group::Installing nginx"
|
||||
@@ -151,7 +151,7 @@ runs:
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: Configure nginx
|
||||
if: inputs.install-web-server == 'true' && inputs.nginx-config != ''
|
||||
if: inputs.install-nginx == 'true' && inputs.nginx-config != ''
|
||||
shell: bash
|
||||
run: |
|
||||
echo "::group::Configuring nginx"
|
||||
@@ -168,7 +168,7 @@ runs:
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: Start nginx
|
||||
if: inputs.install-web-server == 'true'
|
||||
if: inputs.install-nginx == 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
echo "::group::Starting nginx"
|
||||
@@ -211,7 +211,7 @@ runs:
|
||||
cd "${{ inputs.server-path }}"
|
||||
|
||||
if [ -f "composer.json" ]; then
|
||||
composer install --no-dev --optimize-autoloader
|
||||
composer install --optimize-autoloader
|
||||
echo "PHP dependencies installed successfully"
|
||||
else
|
||||
echo "::warning::composer.json not found, skipping PHP dependency installation"
|
||||
|
||||
Reference in New Issue
Block a user