We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 693d8a0 commit 33ee954Copy full SHA for 33ee954
.github/workflows/delete-old-branches.yml
@@ -21,6 +21,9 @@ jobs:
21
run: |
22
git fetch --prune
23
24
+ # Get the list of merged branches (remote)
25
+ MERGED_BRANCHES=$(git branch -r --merged origin/main | grep -v "main" | grep -v "HEAD")
26
+
27
# Delete merged branches older than 30 days, except main
28
for branch in $(git branch -r --merged | grep -v "main" | grep -v "HEAD"); do
29
BRANCH_NAME=$(echo $branch | sed 's/origin\///')
0 commit comments