From d5268624a4465756cd984a4dd5f3dae0bb7b9f13 Mon Sep 17 00:00:00 2001 From: Nara Kasbergen Kwon <855115+xiehan@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:47:52 +0200 Subject: [PATCH] chore: add another branch pattern to cleanup script --- .github/workflows/delete-old-branches.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/delete-old-branches.yml b/.github/workflows/delete-old-branches.yml index e4b713f..c93f082 100644 --- a/.github/workflows/delete-old-branches.yml +++ b/.github/workflows/delete-old-branches.yml @@ -39,6 +39,8 @@ jobs: - name: Delete old branches from when we used to build providers against cdktf@next run: git branch -r | egrep -o "cdktf-next-pr.*" | xargs -n 1 git push origin --delete continue-on-error: true # don't fail the run if these branches never existed + - name: Delete old temporary branches from previous repo-manager runs + run: git branch -r | egrep -o "foo-bar.*" | xargs -n 1 git push origin --delete - name: Delete old renovate branches that were never used run: git branch -r | egrep -o ".*renovate.*" | xargs -n 1 git push origin --delete continue-on-error: true # don't fail the run if these branches never existed