[difftrain] Remove dependency on node-fetch (#26182)

`fetch` is now provided by github-scripts implicitly in
https://github.com/actions/github-script/releases/tag/v6.4.0, so this
was causing a duplicate declaration error.
This commit is contained in:
lauren 2023-02-16 15:47:12 -05:00 committed by GitHub
parent 189f70e17b
commit 21b49103d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -8,17 +8,11 @@ jobs:
download_artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm init -y
- run: npm install node-fetch@2
- name: Download and unzip artifacts
uses: actions/github-script@v6
with:
script: |
const cp = require('child_process');
const fetch = require('node-fetch');
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));