This commit is contained in:
Greyscale 2024-05-18 20:10:00 +02:00
parent de0f393f69
commit 23f88bd9c7
2 changed files with 10 additions and 3 deletions

View file

@ -1,12 +1,19 @@
# action-setup-php
Sets up a PHP project with GitHub Actions, including detecting PHP version and running composer install.
![Tests Status](https://img.shields.io/github/actions/workflow/status/benzine-framework/action-setup-php/test.yml?logo=github&label=Tests)
![QC Status](https://img.shields.io/github/actions/workflow/status/benzine-framework/action-setup-php/trunk.check.yml?logo=github&label=QC)
## Inputs:
- `working_directory`: The directory to run the PHP setup in. Default: `.`.
- `php_tools`: The PHP tools to install.
- `php_tools`: The PHP tools to install.
## Outputs:
- `php_version`: The PHP version that was detected.
## Exported Envs:
- `PHP_VERSION`: The PHP version that was detected.
- `PHP_VERSION`: The PHP version that was detected.

View file

@ -55,7 +55,7 @@ runs:
uses: actions/cache/restore@v4
with:
path: ${{ steps.composer-cache-find.outputs.dir }}
key: ${{ steps.composer-cache-find.outputs.key
key: ${{ steps.composer-cache-find.outputs.key }}
restore-keys: ${{ steps.composer-cache-find.outputs.restore-key }}
- working-directory: ${{ inputs.working_directory }}
if: ${{ steps.read-php-version.outputs.has_composer }}