This action cancels the workflow (or, to be exact, fails the step) if it was run on one of the specified weekdays.
Default: 'friday, saturday, sunday'
A case-insensitive list of weekdays (1-7 or English weekday names) that workflows calling this action should be cancelled on. Separated either through lines, or commas, or both.
See below for more detailed info and examples.
1 = Monday...7 = Sunday
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.
Note: This is the default behavior.
uses: freenet-actions/cancel-on-weekdays@v2 # Please pin a commit hash instead.uses: freenet-actions/cancel-on-weekdays@v2 # Please pin a commit hash instead.
with:
blocked_days: |
saturday
sunday
mondayNote: Spaces after the commas are optional.
uses: freenet-actions/cancel-on-weekdays@v2 # Please pin a commit hash instead.
with:
blocked_days: 'saturday, sunday, monday'Note: Also works in a single line, see above.
uses: freenet-actions/cancel-on-weekdays@v2 # Please pin a commit hash instead.
with:
blocked_days: |
6
7
1if: inputs.environment == 'prod'
uses: freenet-actions/cancel-on-weekdays@v2 # Please pin a commit hash instead.
with:
blocked_days: 'saturday, sunday, monday'if: inputs.enforce == false
uses: freenet-actions/cancel-on-weekdays@v2 # Please pin a commit hash instead.
with:
blocked_days: 'saturday, sunday, monday'