Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 703 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 703 Bytes

Deploy Core Hours

This GitHub Action will prevent you from auto deploying during non-core hours, and (UPS) holidays.

Inputs

timezone

Required Your local timezone. Default "UTC".

dayStartHour

Default 9.

dayEndHour

Default 17(5pm).

deploy<DAY_OF_WEEK>

Default true.

Example usage

name: Deploy Core Hours

on:
  pull_request:
    branches:
      - 'main'

jobs:
  no_deploy_friday_job:
    runs-on: ubuntu-latest
    name: Deploy?
    steps:
    - name: Deploy Core Hours
      uses: quiltt/[email protected]
      with:
        timezone: 'America/New_York'
        dayStartHour: 10
        dayEndHour: 17
        deployFriday: false