-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Determine workflow run id more robustly to avoid race conditions (#37)
* Set query=event=workflow_dispatch&status=in_progress. Align wait_interval with api and docs * Remove note about ###Timing in the ##Potential Issues section and update 'INPUT_WAIT_INTERVAL' in the ##Testing section of the README. * Added the ability to delay API calls for the last_workflow loop through a configurable last_workflow_interval input variable (defaults to 0). Redefine 'inputs' variable to be 'client_payload'. Lastly, using #bash, which uses /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin * Determine workflow run id more robustly to avoid race conditions * Refactor to use a common api function that catches and reports errors * Change function name to be busybox-compatible * Fix testing instructions to use busybox to run entrypoint.sh The Alpine base image uses the busybox implementation of sh, so we need to use the same shell when testing entrypoint.sh outside of Docker. * Fix incorrect status message * Add coreutils to Docker image * Remove extraneous single quotes * Use an explicit tag for the alpine base image This prevents runners from using a stale base and is better practice anyway Co-authored-by: Levon <[email protected]> Co-authored-by: Keith Weaver <[email protected]>
- Loading branch information
1 parent
d2b75f3
commit 8be90d7
Showing
4 changed files
with
120 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
8be90d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You changed
inputs
toclient_payload
. This should've been version 2.0.0 since that's a breaking change in your public API