diff --git a/README.md b/README.md index e8e0b80f..a5b4713e 100644 --- a/README.md +++ b/README.md @@ -141,10 +141,10 @@ This action starts immediately but ignores the job missing in the first 5 minute - No need to extend `wait-seconds-before-first-polling` - Disable `optional`, because it is needed to check - Set enough value for `startupGracePeriod` for this purpose.\ - It should be parsible with [Temporal.Duration.from()](https://github.com/tc39/proposal-temporal)\ + It should be parsible with [TC39 - Temporal.Duration](https://github.com/tc39/proposal-temporal/blob/26e4cebe3c49f56932c1d5064fec9993e981823a/docs/duration.md)\ e.g - - `"PT1M"` # ISO8601 duration format - - `{ "minutes": 3, "seconds": 20 }` # key-value for each unit + - `"PT3M42S"` # ISO 8601 duration format + - `{ "minutes": 3, "seconds": 42 }` # key-value for each unit If not using wait-list, this pattern should be considered in your `wait-seconds-before-first-polling`. diff --git a/src/schema.ts b/src/schema.ts index 7e057611..46bcc971 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -34,6 +34,8 @@ const MyDurationLike = z.object({ type MyDurationLike = z.infer; +// IETF does not define duration formats in their RFCs, but in RFC 3399 refers ISO 8601 duration formats. +// https://www.ietf.org/rfc/rfc3339.txt const Durationable = z.union([z.string().duration(), MyDurationLike]); type Dirationable = z.infer;