Adding the wait-interval-seconds input#98
Merged
Merged
Conversation
Contributor
Author
|
@benc-uk any thoughts on this one? |
There was a problem hiding this comment.
Pull request overview
Adds a new wait-interval-seconds input to make the polling interval configurable when wait-for-completion is enabled, improving usability for long-running workflows.
Changes:
- Introduced
wait-interval-secondsinput and used it to control the polling delay. - Documented the new input in
README.md. - Updated the bundled
dist/index.jsandaction.yamlto keep the action in sync.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/main.ts |
Reads wait-interval-seconds and uses it in the polling loop delay. |
README.md |
Documents the new wait-interval-seconds input. |
action.yaml |
Adds the new input definition and default value. |
dist/index.js |
Rebuilt bundle reflecting the new input and polling behavior. |
Comment on lines
+67
to
+70
| ### `wait-interval-seconds` | ||
|
|
||
| **Optional.** Interval in seconds between polls. This only applies if `wait-for-completion` is set to `true`. Default is `5` seconds. | ||
|
|
Owner
|
Thanks @wvidana ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding the option to configure the wait interval. It was hardcoded to 5 seconds, which is a bit short for long running jobs