Skip to content

Commit 1def34b

Browse files
committed
build: install deps for now
1 parent cf116d5 commit 1def34b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/test-action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
uses: actions/checkout@v3
1010
with:
1111
persist-credentials: false
12+
- name: Use Node.js 16.x
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
- name: Install deps
17+
run: npm i
1218
- name: Start Patch
1319
uses: ./
1420
with:

lib/runner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import fs from 'node:fs/promises';
22
import f from 'node:fs'
33
import { execSync } from 'node:child_process'
4+
import { fetch } from 'undici'
45

56
export async function apply_patch(base_path, patch_path, output_path) {
67
if (!f.existsSync(base_path)) {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"dependencies": {
2121
"@actions/core": "^1.10.0",
22-
"@actions/github": "^5.1.1"
22+
"@actions/github": "^5.1.1",
23+
"undici": "^5.12.0"
2324
}
2425
}

0 commit comments

Comments
 (0)