forked from syntaqx/github-flow-example
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 774 Bytes
/
Copy pathstale.yml
File metadata and controls
34 lines (30 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 'Cleanup stale data'
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '.github/workflows/stale.yml'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: 'Close stale issues and PRs'
uses: actions/stale@v9
branches:
runs-on: ubuntu-latest
steps:
- name: 'Delete abandoned branches'
uses: phpdocker-io/github-actions-delete-abandoned-branches@v2
id: delete-branches
with:
github_token: ${{ github.token }}
last_commit_age_days: 100
dry_run: no
-
name: Get output
run: "echo 'Deleted branches: ${{ steps.delete-branches.outputs.deleted_branches }}'"