https://github.com/freenet-actions/cancel-workflow-on-weekdays
OBSOLETE - This action cancels the workflow (or, to be exact, fails the step) if it was run on one of the specified weekdays.
https://github.com/freenet-actions/cancel-workflow-on-weekdays
action block cancel weekday weekdays workflow workflows
Last synced: 3 months ago
JSON representation
OBSOLETE - This action cancels the workflow (or, to be exact, fails the step) if it was run on one of the specified weekdays.
- Host: GitHub
- URL: https://github.com/freenet-actions/cancel-workflow-on-weekdays
- Owner: freenet-actions
- License: mit
- Created: 2023-09-29T10:35:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-16T16:40:46.000Z (5 months ago)
- Last Synced: 2026-02-16T23:56:36.133Z (5 months ago)
- Language: JavaScript
- Homepage: https://github.com/freenet-actions/cancel-on-weekdays
- Size: 587 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# THIS ACTION WAS REPLACED BY [cancel-on-weekdays](https://github.com/freenet-actions/cancel-on-weekdays)!
## OBSOLETE! This action/repository will be turned PRIVATE in future!
> [!CAUTION]
> This action is now fully obsolete and unsupported. Please switch to the full replacement [cancel-on-weekdays](https://github.com/freenet-actions/cancel-on-weekdays).
>
> In future, **this action will be turned PRIVATE!**
# Cancel Workflow on Weekdays
[](https://github.com/freenet-actions/cancel-workflow-on-weekdays/blob/main/LICENSE)
This action cancels the workflow (or, to be exact, fails the step) if it was run on one of the specified weekdays.
## Inputs
### `blocked_days`
*Default: 'friday, saturday, sunday'*
A not case-sensitive list of weekdays (0-6 or English words) that workflows calling this action should be blocked on. Separated either through lines, or commas, or both.
See below for more detailed info and examples.
**0 = Sunday...6 = Saturday**
## Outputs
### `cancellation_reason`
The reason of the cancellation of the workflow. Empty if the workflow was not cancelled.
## Usage
#### This action should be run before any steps that might affect any systems, preferably as the first step of the deployment process.
### Cancelling during the weekend (Friday to Sunday)
```yaml
uses: freenet-actions/cancel-workflow-on-weekdays@v1
```
### Cancelling on specific days
```yaml
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: |
saturday
sunday
monday
```
### Cancelling on specific days (in a single line)
**Note:** Spaces after the commas are *optional*.
```yaml
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: 'saturday, sunday, monday'
```
### Cancelling on specific days (using numbers)
**Note:** Also works in a single line, see above.
```yaml
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: |
6
0
1
```
### Cancelling based on workflow variables
#### Only cancelling on specific days if the `environment` is `prod`
```yaml
if: inputs.environment == 'prod'
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: 'saturday, sunday, monday'
```
#### Only cancelling on specific days if the input `enforce` is `false`
```yaml
if: inputs.enforce == false
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: 'saturday, sunday, monday'
```