mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
* 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>
20 lines
621 B
YAML
20 lines
621 B
YAML
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
|