Skip to content

Commit 0e15778

Browse files
authored
Merge pull request #27 from actions/increase-default-query-interval
Increase default query interval and fix time exceed bug
2 parents a68b5a4 + 12940a5 commit 0e15778

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
reporting_interval:
2121
description: 'Time in milliseconds between two deployment status report (default: 1 second)'
2222
required: false
23-
default: "1000"
23+
default: "5000"
2424
outputs:
2525
page_url:
2626
description: 'URL to deployed Github Pages'

dist/index.js

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pre/index.js

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pre/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/deployment.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,13 @@ class Deployment {
138138
core.setFailed('Failed with status code: ' + res.status)
139139
break
140140
}
141-
}
142-
// Handle timeout
143-
if (Date.now() - startTime >= timeout) {
144-
core.info('Timeout reached, aborting!')
145-
core.setFailed('Timeout reached, aborting!')
146-
return
141+
142+
// Handle timeout
143+
if (Date.now() - startTime >= timeout) {
144+
core.info('Timeout reached, aborting!')
145+
core.setFailed('Timeout reached, aborting!')
146+
return
147+
}
147148
}
148149
} catch (error) {
149150
core.setFailed(error)

0 commit comments

Comments
 (0)