Skip to content

Commit

Permalink
fix: use matrix.version
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed May 8, 2024
1 parent 8f9ebd9 commit fc4efa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node-test-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
result-encoding: string
script: |
const osVersion = '${{ matrix.os }}';
const nodeVersion = '${{ matrix['node-version'] }}';
const nodeVersion = '${{ matrix.version }}';
const isMacOS = osVersion === 'macos-latest' || osVersion.startsWith('macos');
const isMajor14 = nodeVersion === '14' || nodeVersion.startsWith('14.');
if (isMacOS && isMajor14) {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
result-encoding: string
script: |
const osVersion = '${{ matrix.os }}';
const nodeVersion = '${{ matrix['node-version'] }}';
const nodeVersion = '${{ matrix.version }}';
const isMacOS = osVersion === 'macos-latest' || osVersion.startsWith('macos');
const isMajor14 = nodeVersion === '14' || nodeVersion.startsWith('14.');
if (isMacOS && isMajor14) {
Expand Down

0 comments on commit fc4efa3

Please sign in to comment.