From f6137b4e3961e61b5ad86784749526bf212c1a90 Mon Sep 17 00:00:00 2001 From: mdv-devops Date: Thu, 6 Apr 2023 11:58:39 +0400 Subject: [PATCH 1/2] Create delete-old-branches.yaml --- .github/workflows/delete-old-branches.yaml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/delete-old-branches.yaml diff --git a/.github/workflows/delete-old-branches.yaml b/.github/workflows/delete-old-branches.yaml new file mode 100644 index 000000000..8d0ab9911 --- /dev/null +++ b/.github/workflows/delete-old-branches.yaml @@ -0,0 +1,29 @@ +name: Delete abandoned branches + +on: + # Run daily at midnight + schedule: + - cron: "0 0 * * *" + + # Allow workflow to be manually run from the GitHub UI + workflow_dispatch: + +jobs: + cleanup_old_branches: + runs-on: ubuntu-latest + name: Satisfy my repo CDO + steps: + - name: Delete those pesky dead branches + uses: phpdocker-io/github-actions-delete-abandoned-branches@v1 + id: delete_stuff + with: + github_token: ${{ github.token }} + last_commit_age_days: 100 + ignore_branches: next-version,dont-deleteme + github_base_url: https://github.mycompany.com/api/v3 + + # Disable dry run and actually get stuff deleted + dry_run: no + + - name: Get output + run: "echo 'Deleted branches: ${{ steps.delete_stuff.outputs.deleted_branches }}'" From 6b7e48a4ba926c84896ee8180387c71d936a9f98 Mon Sep 17 00:00:00 2001 From: Dmitriy Marinyuk <–marinyuk.dima@gmail.com> Date: Thu, 23 Nov 2023 11:38:14 +0400 Subject: [PATCH 2/2] Edit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3e10b9f28..5479e7652 100644 --- a/README.md +++ b/README.md @@ -124,3 +124,5 @@ Please see our [CHANGELOG.md](./CHANGELOG.md) for details. ### Documentation Please see our [GETTING_STARTED.md](https://ot-container-kit.github.io/redis-operator/) for details. + +### END \ No newline at end of file