Skip to content

Commit d135165

Browse files
committed
Replace invalid YAML array
1 parent 4b603ac commit d135165

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ inputs:
1212
endpoints:
1313
description: "The endpoints to test the response time of."
1414
required: true
15-
default: [
16-
"/test"
17-
]
15+
default: "/test1 /test2"
1816
runs:
1917
using: 'node18'
2018
main: 'index.js'

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch
77
try {
88
const timeLimit = core.getInput("time-limit");
99
const base = core.getInput("base");
10-
const endpoints = core.getInput("endpoints");
11-
10+
const endpoints = core.getInput("endpoints").split(" ");
11+
1212
for (endpoint of endpoints){
1313
const time = Date.now();
1414
await fetch(`${base}${endpoint}`).then(data => data.text());

0 commit comments

Comments
 (0)