Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef7e289

Browse files
committed
chore(ci): automatically delete stale branches
1 parent89bf8dd commitef7e289

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

‎.github/workflows/stale.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name:Stale IssueCron
1+
name:Stale Issueand Branch Cleanup
22
on:
33
schedule:
44
# Every day at midnight
55
-cron:"0 0 * * *"
66
workflow_dispatch:
77
jobs:
8-
stale:
8+
issues:
99
runs-on:ubuntu-latest
1010
permissions:
1111
issues:write
@@ -32,3 +32,17 @@ jobs:
3232
operations-per-run:60
3333
# Start with the oldest issues, always.
3434
ascending:true
35+
branches:
36+
runs-on:ubuntu-latest
37+
steps:
38+
-name:Checkout repository
39+
uses:actions/checkout@v2
40+
-name:Run delete-old-branches-action
41+
uses:beatlabs/delete-old-branches-action@v0.0.9
42+
with:
43+
repo_token:${{ github.token }}
44+
date:"6 months ago"
45+
dry_run:false
46+
delete_tags:false
47+
# extra_protected_branch_regex: ^(foo|bar)$
48+
exclude_open_pr_branches:true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp