Rather than require ISO datetimes be entered when manually calling the Event Gather action, this code generates ISO datetime values which reflect the codebase defaults (2 days prior for the from value, now for to). Narrowly within the "Gather and Process Requested Events - Manual" step, we use the date command to set environment variables for the default values and use bash parameter expansion to override the user input when it's null. This post details this approach in our specific case:
https://dev.to/mrmike/github-action-handling-input-default-value-5f2g
I ran this on the Olympia instance and the logs indicate the default values were successfully generated:
Link to Relevant Issue
This pull request resolves #149
Description of Changes
Rather than require ISO datetimes be entered when manually calling the Event Gather action, this code generates ISO datetime values which reflect the codebase defaults (2 days prior for the from value, now for to). Narrowly within the "Gather and Process Requested Events - Manual" step, we use the
date
command to set environment variables for the default values and usebash
parameter expansion to override the user input when it'snull
. This post details this approach in our specific case: https://dev.to/mrmike/github-action-handling-input-default-value-5f2gI ran this on the Olympia instance and the logs indicate the default values were successfully generated: