diff options
author | raisinten <raisinten@gmail.com> | 2020-11-14 18:20:03 +0300 |
---|---|---|
committer | Beth Griggs <bgriggs@redhat.com> | 2020-12-15 23:15:24 +0300 |
commit | 699bb348d95c0b4078e542dee6efe9d54748c445 (patch) | |
tree | 5f7dc9aca9714614e04267cdebcd8290641ec533 /.github | |
parent | d27e56356bb62bacf74965e441030faeeec2b24c (diff) |
build: replace which with command -v
PR-URL: https://github.com/nodejs/node/pull/36118
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/linters.yml | 8 | ||||
-rw-r--r-- | .github/workflows/misc.yml | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 6c25e775d34..14aed9bfddf 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -24,7 +24,7 @@ jobs: - name: Environment Information run: npx envinfo - name: Lint addon docs - run: NODE=$(which node) make lint-addon-docs + run: NODE=$(command -v node) make lint-addon-docs lint-cpp: runs-on: ubuntu-latest steps: @@ -50,7 +50,7 @@ jobs: - name: Lint docs run: | echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json" - NODE=$(which node) make lint-md + NODE=$(command -v node) make lint-md lint-js: runs-on: ubuntu-latest steps: @@ -62,7 +62,7 @@ jobs: - name: Environment Information run: npx envinfo - name: Lint JavaScript files - run: NODE=$(which node) make lint-js + run: NODE=$(command -v node) make lint-js lint-py: runs-on: ubuntu-latest steps: @@ -76,7 +76,7 @@ jobs: - name: Lint Python run: | make lint-py-build || true - NODE=$(which node) make lint-py + NODE=$(command -v node) make lint-py lint-codeowners: runs-on: ubuntu-latest diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index 4ee135c5ebc..1444dff7262 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -23,7 +23,7 @@ jobs: - name: Environment Information run: npx envinfo - name: Build - run: NODE=$(which node) make doc-only + run: NODE=$(command -v node) make doc-only - uses: actions/upload-artifact@v1 with: name: docs |