Skip to content

Commit e8fce6e

Browse files
authored
[WIP] Fix broken script in action step (#9501)
1 parent 03e039d commit e8fce6e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/delete-old-copilot-branches.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ current_time=$(date +%s)
7171
seven_days_ago=$((current_time - 604800))
7272

7373
# Get max branches limit from environment variable (default: unlimited)
74-
max_branches=${MAX_BRANCHES:-0}
74+
# Convert to integer to handle float values from GitHub Actions
75+
max_branches_raw=${MAX_BRANCHES:-0}
76+
max_branches=${max_branches_raw%.*}
7577

7678
# Track branches to delete
7779
branches_to_delete=()

0 commit comments

Comments
 (0)