Skip to content

Commit

Permalink
Upgrade the templates to use latest versions of GitHub actions in the…
Browse files Browse the repository at this point in the history
… JS package `generator-grow`.
  • Loading branch information
eason9487 committed May 13, 2024
1 parent d676835 commit ac48811
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Set PR Labels

on:
pull_request:
pull_request_target:
types: opened

jobs:
SetLabels:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Set Labels
uses: woocommerce/grow/branch-label@actions-v1
uses: woocommerce/grow/branch-label@actions-v2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ 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
with:
php-version: <%= phpVersion %>
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare PHP
uses: woocommerce/grow/prepare-php@actions-v1
uses: woocommerce/grow/prepare-php@actions-v2
with:
php-version: <%= phpVersion %>
tools: cs2pr
Expand Down

0 comments on commit ac48811

Please sign in to comment.