-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ReadMe
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,43 @@ jobs: | |
uses: erkenes/php-cs-fixer-action@main | ||
``` | ||
### Use a specific version of PHP | ||
You can specify the PHP version to use by adding it as a prefix to the action version. | ||
```yaml | ||
# .github/workflows/php-cs-fixer.yml | ||
|
||
name: PHP-CS-Fixer | ||
|
||
on: | ||
pull_request: | ||
types: [review_requested, ready_for_review] | ||
|
||
jobs: | ||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
uses: actions/checkout@v4 | ||
|
||
# PHP 8.3 (equal to main) | ||
- | ||
name: Run PHP-CS-Fixer | ||
uses: erkenes/[email protected] | ||
|
||
# PHP 8.2 | ||
- | ||
name: Run PHP-CS-Fixer | ||
uses: erkenes/[email protected] | ||
|
||
# PHP 8.1 | ||
- | ||
name: Run PHP-CS-Fixer | ||
uses: erkenes/[email protected] | ||
``` | ||
### Use auto-commit | ||
To commit the changes automatically to the branch of the pull request, you can use the following configuration: | ||
|