Skip to content

Commit b96af00

Browse files
ci: Fix subscripting bug in cache eviction script.
1 parent e9988a7 commit b96af00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/evict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def default_main():
8282

8383
# Sort descending based on timestamps, and evict the oldest two.
8484
sorted(entries_and_times, key=operator.itemgetter(1))
85-
earliest_entries = entries_and_times[0:2][0]
85+
earliest_entries = [x[0] for x in entries_and_times[0:2]]
8686

8787
for early_entry in earliest_entries:
8888
if os.getenv('DRY_RUN'):

0 commit comments

Comments
 (0)