Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ynab/us-holiday-action
GitHub Action that determines whether the current system clock date is a US Holiday
https://github.com/ynab/us-holiday-action
Last synced: 8 days ago
JSON representation
GitHub Action that determines whether the current system clock date is a US Holiday
- Host: GitHub
- URL: https://github.com/ynab/us-holiday-action
- Owner: ynab
- License: mit
- Created: 2023-01-25T18:37:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T19:35:18.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T13:42:27.453Z (2 months ago)
- Language: JavaScript
- Size: 1.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```yaml
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'
```