mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 05:17:22 +00:00
Merge pull request #10686 from MicrosoftDocs/main
Add new StaleBranch workflow
This commit is contained in:
commit
8bb554f385
25
.github/workflows/StaleBranch.yml
vendored
Normal file
25
.github/workflows/StaleBranch.yml
vendored
Normal 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 }}
|
Loading…
x
Reference in New Issue
Block a user