From f1be1ccbef40dddec3ffd48a6435553ee93a0897 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Tue, 10 Sep 2024 10:11:03 -0700 Subject: [PATCH] fix wrong use of env var in `run-test-template.yml` --- .github/workflows/run-test-template.yml | 5 ++++- .github/workflows/tests.yml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-test-template.yml b/.github/workflows/run-test-template.yml index e5c5d0a268a..9135195a553 100644 --- a/.github/workflows/run-test-template.yml +++ b/.github/workflows/run-test-template.yml @@ -6,6 +6,9 @@ on: project: required: true type: string + node-version: + required: true + type: number jobs: test: @@ -16,7 +19,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: ${{ env.NODE_VERSION }} + node-version: ${{ inputs.node-version }} - name: Install Node.js dependencies run: npm ci - name: Run ${{ inputs.project }} tests diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 32083e36689..15507ca6bdb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,4 +42,5 @@ jobs: project: [misc, abilities, items, moves, battle] uses: ./run-test-template.yml # run job defined in run-test-template.yml with: - project: ${{ matrix.project }} \ No newline at end of file + project: ${{ matrix.project }} + node-version: ${{ env.NODE_VERSION }} \ No newline at end of file