Merge pull request #10686 from MicrosoftDocs/main

Add new StaleBranch workflow
This commit is contained in:
David Strome 2025-03-14 16:43:49 -07:00 committed by GitHub
commit 8bb554f385
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

25
.github/workflows/StaleBranch.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: (Scheduled) Stale branch removal
permissions:
contents: write
on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:
jobs:
stale-branch:
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-prod
with:
PayloadJson: ${{ toJSON(github) }}
RepoBranchSkipList: '[
"ExampleBranch1",
"ExampleBranch2"
]'
ReportOnly: true
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}