This action cancels the workflow if it was run on one of the specified weekdays.
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
The reason of the cancellation of the workflow. Empty if the workflow was not cancelled.
This action should be run before any steps that might affect any systems, preferably as the first step of the deployment process.
uses: freenet-actions/cancel-workflow-on-weekdays@v1
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: |
saturday
sunday
monday
Note: Spaces after the commas are optional.
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: 'saturday, sunday, monday'
Note: Also works in a single line, see above.
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: |
6
0
1
if: inputs.environment == 'prod'
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: 'saturday, sunday, monday'
if: inputs.enforce == false
uses: freenet-actions/cancel-workflow-on-weekdays@v1
with:
blocked_days: 'saturday, sunday, monday'