Skip to content

Commit 297f8cb

Browse files
Fix releasenotes (#1543)
* fix: correct YAML indentation in update-releasenotes workflow The Python heredoc content was at column 1, which broke out of the YAML block scalar for the 'run' key. Indented the heredoc body to align with the run block so YAML parses it correctly. The block scalar automatically strips the common indentation, so Python receives the code without extra leading spaces. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: export shell variables for python subprocess in release notes workflow FILE and VERSION_HEADER were plain shell variables, invisible to the python3 heredoc subprocess via os.environ. Adding 'export' fixes the KeyError. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ee6ea6d commit 297f8cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-releasenotes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
SECTION: ${{ steps.category.outputs.section }}
6161
CURRENT_VERSION: ${{ steps.version.outputs.latest }}
6262
run: |
63-
FILE="RELEASENOTES.md"
64-
VERSION_HEADER="# NuGet Version ${CURRENT_VERSION}"
63+
export FILE="RELEASENOTES.md"
64+
export VERSION_HEADER="# NuGet Version ${CURRENT_VERSION}"
6565
6666
python3 - <<'PYEOF'
6767
import os, sys

0 commit comments

Comments
 (0)