Skip to content

GitHub Action that determines whether the current system clock date is a US Holiday

License

Notifications You must be signed in to change notification settings

ynab/us-holiday-action

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

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

US Holiday GitHub Action

GitHub Action that determines whether the current system clock date is a US Holiday

Inputs

included_holidays

Required A comma separated list of holiday names to include (from this list: https://github.com/bradymholt/us-holidays-helper/blob/12c6fa7f3e5f64565275a11e39f775177baf2407/src/index.ts#L13-L31)

Default "newYearsDay,martinLutherKingJrDay,presidentsDay,memorialDay,juneteenth,indigenousPeoplesDay,independenceDay,laborDay,thanksgiving,christmas,newYearsEve"

Example usage

steps:
  - uses: ynab/us-holiday-action@v1
    id: us-holiday-check
    with:
      included_holidays: "newYearsDay,martinLutherKingJrDay,presidentsDay,memorialDay,juneteenth,indigenousPeoplesDay,independenceDay,laborDay,thanksgiving,christmas,newYearsEve"  
  - run: echo "Today is a US Holiday"
    if: steps.us-holiday-check.outputs.is-holiday == 'true'

About

GitHub Action that determines whether the current system clock date is a US Holiday

Resources

License

Stars

Watchers

Forks

Packages

No packages published