Commit 081ab11
committed
Expand the publishing workflow with syncing the changelog with new changes and updating the docs' changelog page. (#12062)
* - Add a new "sync" command to bin/changelog
- Add a docs' changelog page update to the publishing workflow
* Fix lint errors.
* Fix CodeQL errors.
* Move the docs changelog update to the stable-publish job.
* Fix publish workflow hardening issues
- Pin NuGet/login to SHA instead of mutable @v1 tag
- Pin NuGet CLI to v7.3.0 instead of latest
- Move version tag to post-merge master commit so it points
to the exact state that was published
- Remove --tags from first-rc-build git push (RC tag is created
via API separately; --tags would push all local tags)
- Fix stable Slack message branch link pointing to deleted
release branch — now links to master
- Handle patch releases in update-docs-changelog.mjs gracefully
instead of erroring when no changelog content is provided
* Use -F for gh api force so ref update receives a boolean
-f sends "force" as the string "true"; -F sends it as JSON true.
PATCH /repos/.../git/refs/{ref} expects a boolean for non-fast-forward
tag updates.
* Fix sync command leaving entry files when all entries already present
When all .changelogs/*.json entries were already in the target changelog
section, syncCommand returned early without deleting the files. In CI
this caused a persistent false-positive: ls still found the files on
every subsequent RC build, reported synced=true, and triggered the
"Changelog extended with new entries!" Slack notification indefinitely.
Files are now deleted in the early-return path too, matching the
behavior of the normal sync path.1 parent 3b5d32d commit 081ab11
3 files changed
Lines changed: 313 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
216 | 221 | | |
217 | 222 | | |
218 | 223 | | |
| |||
225 | 230 | | |
226 | 231 | | |
227 | 232 | | |
228 | | - | |
| 233 | + | |
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
| |||
393 | 398 | | |
394 | 399 | | |
395 | 400 | | |
| 401 | + | |
396 | 402 | | |
397 | 403 | | |
398 | 404 | | |
| |||
504 | 510 | | |
505 | 511 | | |
506 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
507 | 540 | | |
508 | 541 | | |
509 | 542 | | |
| |||
523 | 556 | | |
524 | 557 | | |
525 | 558 | | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | 559 | | |
538 | 560 | | |
539 | 561 | | |
| |||
655 | 677 | | |
656 | 678 | | |
657 | 679 | | |
| 680 | + | |
| 681 | + | |
658 | 682 | | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
666 | 691 | | |
667 | 692 | | |
668 | 693 | | |
| |||
684 | 709 | | |
685 | 710 | | |
686 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
687 | 718 | | |
688 | 719 | | |
689 | 720 | | |
| |||
822 | 853 | | |
823 | 854 | | |
824 | 855 | | |
825 | | - | |
| 856 | + | |
826 | 857 | | |
827 | 858 | | |
828 | 859 | | |
| |||
997 | 1028 | | |
998 | 1029 | | |
999 | 1030 | | |
1000 | | - | |
| 1031 | + | |
1001 | 1032 | | |
1002 | 1033 | | |
1003 | 1034 | | |
| |||
1036 | 1067 | | |
1037 | 1068 | | |
1038 | 1069 | | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1039 | 1084 | | |
1040 | 1085 | | |
1041 | 1086 | | |
| |||
1067 | 1112 | | |
1068 | 1113 | | |
1069 | 1114 | | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1070 | 1118 | | |
1071 | 1119 | | |
1072 | 1120 | | |
| |||
1109 | 1157 | | |
1110 | 1158 | | |
1111 | 1159 | | |
1112 | | - | |
1113 | 1160 | | |
1114 | 1161 | | |
1115 | 1162 | | |
1116 | 1163 | | |
1117 | | - | |
| 1164 | + | |
1118 | 1165 | | |
1119 | 1166 | | |
1120 | 1167 | | |
1121 | 1168 | | |
1122 | | - | |
1123 | 1169 | | |
1124 | 1170 | | |
1125 | 1171 | | |
| |||
1136 | 1182 | | |
1137 | 1183 | | |
1138 | 1184 | | |
1139 | | - | |
| 1185 | + | |
1140 | 1186 | | |
1141 | 1187 | | |
1142 | 1188 | | |
| |||
0 commit comments