mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 05:17:22 +00:00
Add new StaleBranch workflow
This commit is contained in:
parent
92f96eb8ec
commit
1770fb23da
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 */6 * * *"
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
stale-branch:
|
||||||
|
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-test
|
||||||
|
with:
|
||||||
|
PayloadJson: ${{ toJSON(github) }}
|
||||||
|
RepoBranchSkipList: '[
|
||||||
|
"ExampleBranch1",
|
||||||
|
"ExampleBranch2"
|
||||||
|
]'
|
||||||
|
ReportOnly: true
|
||||||
|
secrets:
|
||||||
|
AccessToken: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user