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 03e039d commit e8fce6eCopy full SHA for e8fce6e
1 file changed
scripts/delete-old-copilot-branches.sh
@@ -71,7 +71,9 @@ current_time=$(date +%s)
71
seven_days_ago=$((current_time - 604800))
72
73
# Get max branches limit from environment variable (default: unlimited)
74
-max_branches=${MAX_BRANCHES:-0}
+# Convert to integer to handle float values from GitHub Actions
75
+max_branches_raw=${MAX_BRANCHES:-0}
76
+max_branches=${max_branches_raw%.*}
77
78
# Track branches to delete
79
branches_to_delete=()
0 commit comments