Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbaggett committed May 18, 2024
1 parent de0f393 commit 23f88bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 23f88bd

Please sign in to comment.