Add docs
This commit is contained in:
parent
de0f393f69
commit
23f88bd9c7
2 changed files with 10 additions and 3 deletions
11
README.md
11
README.md
|
@ -1,12 +1,19 @@
|
|||
# action-setup-php
|
||||
|
||||
Sets up a PHP project with GitHub Actions, including detecting PHP version and running composer install.
|
||||
|
||||

|
||||

|
||||
|
||||
## 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.
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue