Commit 5bfbe93
committed
Fix stray fragment injection in updateVersion gradle task
When appending the current version to the rolling-upgrade BWC list, the
rolling section was sliced from updatedContent using a stale offset. Updating
the restart-upgrade section beforehand changed the string length, so the stale
offset pointed before the rolling job header and captured the tail of the
preceding line, injecting an invalid fragment into the workflow YAML.
Recompute the offset inline when extracting the rolling section, matching the
pattern used by the equivalent task in the search-relevance repo.
Signed-off-by: Heemin Kim <heemin@amazon.com>1 parent d35bab4 commit 5bfbe93
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
693 | | - | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
694 | 696 | | |
695 | 697 | | |
696 | 698 | | |
697 | 699 | | |
698 | 700 | | |
699 | 701 | | |
700 | | - | |
701 | 702 | | |
702 | 703 | | |
703 | 704 | | |
| |||
0 commit comments