Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hormcodes/do-not-deploy-on-friday
GitHub Action to tell you "Don't deploy on Friday!"
https://github.com/hormcodes/do-not-deploy-on-friday
actions deploy friday-deploy github-actions
Last synced: 7 days ago
JSON representation
GitHub Action to tell you "Don't deploy on Friday!"
- Host: GitHub
- URL: https://github.com/hormcodes/do-not-deploy-on-friday
- Owner: HormCodes
- License: mit
- Created: 2021-12-23T17:18:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-26T15:32:27.000Z (9 months ago)
- Last Synced: 2024-04-26T19:01:43.107Z (7 months ago)
- Topics: actions, deploy, friday-deploy, github-actions
- Language: TypeScript
- Homepage:
- Size: 285 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Don't Deploy on Friday
GitHub Action to tell you "Don't deploy on Friday!". This action will fail with an error if the current day in the specified timezone is Friday.
## Usage
Insert following step into your GitHub Actions workflow:
```yaml
steps:
- uses: HormCodes/do-not-deploy-on-friday@v1
# See Inputs section below...
with:
timezone: Europe/Prague
```## Inputs
| **Name** | **Required** | **Description** | **Default** |
|:----------:|:------------:|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------:|
| `timezone` | `false` | Timezone to identify the current day. All available timezones are listed [here](http://manpages.ubuntu.com/manpages/bionic/man3/DateTime::TimeZone::Catalog.3pm.html). | UTC |## Outputs
| **Name** | **Type** | **Description** |
|:----------:|:---------:|---------------------------------------------------|
| `dayName` | `string` | Name of the current day, e.g. `Friday`. |
| `dayIndex` | `number` | Index of the current day, e.g. 5. |
| `failed` | `boolean` | Boolean value representing current day is Friday. |## License
This action and all its sources are under [MIT license](LICENSE).