mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 02:45:06 +00:00
feat: add workflow to cleanup stale branches (#10463)
* feat: add workflow to cleanup stale branches Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com> * feat: testing Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com> * feat: more testing Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com> * feat: add sha Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com> * feat: remove debug Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com> --------- Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
c305fbc070
commit
94f0ec3e2c
1 changed files with 20 additions and 0 deletions
20
.github/workflows/clean-stale-branches.yaml
vendored
Normal file
20
.github/workflows/clean-stale-branches.yaml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Cleanup Stale Branches
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # This schedule runs the workflow at midnight every day
|
||||
|
||||
jobs:
|
||||
cleanup-stale-branches:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cleanup Stale Branches
|
||||
uses: cbrgm/cleanup-stale-branches-action@af96333d4b82de4b00ea2305610a0e3a3da82392 # v1.1.16
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repository: ${{ github.repository }}
|
||||
allowed-prefixes: "dependabot/,temp-cherry-pick-,cherry-pick-"
|
||||
last-commit-age-days: 7
|
||||
dry-run: false
|
||||
rate-limit: true
|
Loading…
Add table
Reference in a new issue