From 6df28873783540dd0f9afb299abd2f0b28ffd6de Mon Sep 17 00:00:00 2001 From: Marcelo Vargas Date: Thu, 20 Jul 2023 16:47:24 -0700 Subject: [PATCH] added commented commands to delete branches from local and origin --- .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 d13a1c35..c940831a 100644 --- a/.github/workflows/delete-old-branches.yml +++ b/.github/workflows/delete-old-branches.yml @@ -42,5 +42,7 @@ jobs: # Check if the branch is stale (not updated in the last 7 days) and list it if so if [ "$time_difference" -gt "$threshold" ]; then echo "Stale branch: $branch_name" + # git push --delete origin "$branch_name" + # git branch -d "$branch_name" fi done \ No newline at end of file