Skip to content

Commit

Permalink
Replace invalid YAML array
Browse files Browse the repository at this point in the history
  • Loading branch information
NerdyTechy committed Jan 4, 2023
1 parent 4b603ac commit d135165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ inputs:
endpoints:
description: "The endpoints to test the response time of."
required: true
default: [
"/test"
]
default: "/test1 /test2"
runs:
using: 'node18'
main: 'index.js'
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch
try {
const timeLimit = core.getInput("time-limit");
const base = core.getInput("base");
const endpoints = core.getInput("endpoints");
const endpoints = core.getInput("endpoints").split(" ");

for (endpoint of endpoints){
const time = Date.now();
await fetch(`${base}${endpoint}`).then(data => data.text());
Expand Down

0 comments on commit d135165

Please sign in to comment.