This action checks if datetime is within specified working hours.
Timezone. Default UTC
Country according to date-holidays. Default none
Required working hours schedule in YAML format as inline string:
monday:
startHour: 9
endHour: 18
tuesday:
startHour: 9
endHour: 18
wednesday:
startHour: 9
endHour: 18
thursday: ...
friday: ...
saturday: ...
sunday: ...
Types of holidays to check for. Separated by ,
. Choose from public, bank, optional, school, observance.
types: public,bank
Number of days into future to check for additional working days/hours checks. Default 0
.
If actions should fail on failed working day/hour check. Default true
.
boolean true if working hours
uses: TwistoPayments/working-hours-action@v1
with:
calendar: US
schedule: |
monday:
startHour: 9
endHour: 18
tuesday:
startHour: 9
endHour: 18
wednesday:
startHour: 9
endHour: 18
check_future_days: 0
fail_on_failure: true