Skip to content

Commit e0d430a

Browse files
committed
Avoid warning from providing both version inputs.
1 parent 8ca62ff commit e0d430a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/reusable-test-core-build-process.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
7979
with:
8080
node-version: ${{ inputs.node-version }}
81-
node-version-file: '.nvmrc'
81+
node-version-file: ${{ inputs.node-version == '' && '.nvmrc' || '' }}
8282
cache: npm
8383

8484
- name: Log debug information

.github/workflows/reusable-test-gutenberg-build-process.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
7272
with:
7373
node-version: ${{ inputs.node-version }}
74-
node-version-file: '.nvmrc'
74+
node-version-file: ${{ inputs.node-version == '' && '.nvmrc' || '' }}
7575
cache: npm
7676
cache-dependency-path: |
7777
package-lock.json

0 commit comments

Comments
 (0)