Skip to content

Commit

Permalink
cleanup schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
archmagece committed Mar 28, 2024
1 parent 6ea6959 commit 6a554bd
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ concurrency:
cancel-in-progress: true

on:
push:
branches:
- main
paths:
- 'charts/**'
schedule:
- cron: '0 1 * * *'

jobs:
cleanup-deployments:
Expand Down Expand Up @@ -37,3 +34,17 @@ jobs:
delete_tag_pattern: beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

del_runs:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 30
keep_minimum_runs: 6

0 comments on commit 6a554bd

Please sign in to comment.