Add scheduled maintenance workflow
This commit is contained in:
17
.gitea/workflows/maintenance.yaml
Normal file
17
.gitea/workflows/maintenance.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
name: Weekly Maintenance
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0' # Every Sunday at midnight
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
maintain:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Run maintenance script
|
||||
run: |
|
||||
chmod +x scripts/maintenance.sh
|
||||
./scripts/maintenance.sh
|
||||
Reference in New Issue
Block a user