Skip to content

Commit

Permalink
feat: Update ReadMe
Browse files Browse the repository at this point in the history
Update ReadMe
  • Loading branch information
erkenes committed Apr 24, 2024
1 parent d4c1a2f commit 6509646
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6509646

Please sign in to comment.