Skip to content

Commit

Permalink
Merge pull request #27 from actions/increase-default-query-interval
Browse files Browse the repository at this point in the history
Increase default query interval and fix time exceed bug
  • Loading branch information
yoannchaudet authored Mar 28, 2022
2 parents a68b5a4 + 12940a5 commit 0e15778
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
reporting_interval:
description: 'Time in milliseconds between two deployment status report (default: 1 second)'
required: false
default: "1000"
default: "5000"
outputs:
page_url:
description: 'URL to deployed Github Pages'
13 changes: 7 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions pre/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pre/index.js.map

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions src/deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@ class Deployment {
core.setFailed('Failed with status code: ' + res.status)
break
}
}
// Handle timeout
if (Date.now() - startTime >= timeout) {
core.info('Timeout reached, aborting!')
core.setFailed('Timeout reached, aborting!')
return

// Handle timeout
if (Date.now() - startTime >= timeout) {
core.info('Timeout reached, aborting!')
core.setFailed('Timeout reached, aborting!')
return
}
}
} catch (error) {
core.setFailed(error)
Expand Down

0 comments on commit 0e15778

Please sign in to comment.