mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 05:17:22 +00:00
Update StaleBranch cron 0 9 1,15-31 * *, enable workflow_dispatch
This commit is contained in:
parent
be94f0f128
commit
4e8b0514ed
11
.github/workflows/StaleBranch.yml
vendored
11
.github/workflows/StaleBranch.yml
vendored
@ -2,12 +2,17 @@ name: (Scheduled) Stale branch removal
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
# This workflow is designed to be run in the days up to, and including, a "deletion day", specified by 'DeleteOnDayOfMonth' in env: in https://github.com/MicrosoftDocs/microsoft-365-docs/blob/workflows-prod/.github/workflows/Shared-StaleBranch.yml.
|
||||||
|
# On the days leading up to "deletion day", the workflow will report the branches to be deleted. This lets users see which branches will be deleted. On "deletion day", those branches are deleted.
|
||||||
|
# The workflow should not be configured to run after "deletion day" so that users can review the branches were deleted.
|
||||||
|
# Recommendation: configure cron to run on days 1,15-31 where 1 is what's configured in 'DeleteOnDayOfMonth'. If 'DeleteOnDayOfMonth' is set to something else, update cron to run the two weeks leading up to it.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 9 1 * *"
|
- cron: "0 9 1,15-31 * *"
|
||||||
|
|
||||||
# workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user