Skip to content

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

License

Notifications You must be signed in to change notification settings

quiltt/deploy-core-hours

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.7%
  • Makefile 9.3%