Skip to content

Commit ff086e1

Browse files
committed
feat: viascom/github-maintenance-action
1 parent 0876995 commit ff086e1

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
1-
name: Delete old workflow runs
1+
name: GitHub Maintenance
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: '0 3 * * *' # Run daily at 03:00
66

77
jobs:
8-
delete_runs:
8+
github_maintenance:
9+
name: Execute Maintenance
910
runs-on: ubuntu-latest
11+
1012
permissions:
1113
actions: write
1214

1315
steps:
14-
- name: Setup timezone
15-
run: |
16-
sudo timedatectl set-timezone Europe/Zurich
17-
timedatectl
18-
1916
- name: Delete workflow runs
20-
uses: Mattraks/delete-workflow-runs@v2
21-
with:
22-
token: ${{ github.token }}
23-
repository: ${{ github.repository }}
24-
retain_days: 30
25-
keep_minimum_runs: 7
17+
uses: viascom/[email protected]

0 commit comments

Comments
 (0)