Tags: convictional/trigger-workflow-and-wait
Tags
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 <levon.kechichian@kroger.com> Co-authored-by: Keith Weaver <64023834+keithconvictional@users.noreply.github.com>
PreviousNext