Skip to content

Commit

Permalink
Merge pull request #116 from woocommerce/update/108-nodejs-v20-github…
Browse files Browse the repository at this point in the history
…-actions-phpcs-diff

Upgrade the `phpcs-diff` action to use Node.js v20
  • Loading branch information
eason9487 authored Apr 25, 2024
2 parents e044ab6 + 9b49e04 commit 682cc86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/github-actions/actions/phpcs-diff/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run PHPCS to changed lines of code
uses: woocommerce/grow/phpcs-diff@actions-v1
uses: woocommerce/grow/phpcs-diff@actions-v2
```
#### Specify the PHP version:
```yaml
steps:
- name: Run PHPCS to changed lines of code
uses: woocommerce/grow/phpcs-diff@actions-v1
uses: woocommerce/grow/phpcs-diff@actions-v2
with:
php-version: 8.1
```
4 changes: 2 additions & 2 deletions packages/github-actions/actions/phpcs-diff/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ runs:
using: composite
steps:
# Checkout repository.
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

# Set up PHP.
- uses: woocommerce/grow/prepare-php@actions-v1
- uses: woocommerce/grow/prepare-php@actions-v2
with:
php-version: ${{ inputs.php-version }}

Expand Down

0 comments on commit 682cc86

Please sign in to comment.