Skip to content

Commit ab2ff42

Browse files
committed
Fix release workflow YAML syntax
1 parent 0143075 commit ab2ff42

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ jobs:
260260
261261
- name: Warn if GitHub Packages auth failed
262262
if: steps.github-auth.outcome == 'failure'
263-
run: echo "Warning: GitHub Packages mirror auth failed after nuget.org publication; investigate the mirror channel separately." >> "$GITHUB_STEP_SUMMARY"
263+
run: |
264+
echo "Warning: GitHub Packages mirror auth failed after nuget.org publication; investigate the mirror channel separately." >> "$GITHUB_STEP_SUMMARY"
264265
265266
- name: Publish Core to GitHub Packages
266267
id: core-gpr-publish
@@ -270,7 +271,8 @@ jobs:
270271

271272
- name: Warn if Core GitHub Packages mirror failed
272273
if: steps.core-gpr-publish.outcome == 'failure'
273-
run: echo "Warning: Core GitHub Packages mirror failed after nuget.org publication; investigate the mirror channel separately." >> "$GITHUB_STEP_SUMMARY"
274+
run: |
275+
echo "Warning: Core GitHub Packages mirror failed after nuget.org publication; investigate the mirror channel separately." >> "$GITHUB_STEP_SUMMARY"
274276
275277
- name: Publish Plugin.Abstractions to GitHub Packages
276278
id: plugin-gpr-publish
@@ -280,7 +282,8 @@ jobs:
280282

281283
- name: Warn if Plugin.Abstractions GitHub Packages mirror failed
282284
if: steps.plugin-gpr-publish.outcome == 'failure'
283-
run: echo "Warning: Plugin.Abstractions GitHub Packages mirror failed after nuget.org publication; investigate the mirror channel separately." >> "$GITHUB_STEP_SUMMARY"
285+
run: |
286+
echo "Warning: Plugin.Abstractions GitHub Packages mirror failed after nuget.org publication; investigate the mirror channel separately." >> "$GITHUB_STEP_SUMMARY"
284287
285288
- name: Publish global tool to GitHub Packages
286289
id: tool-gpr-publish
@@ -290,4 +293,5 @@ jobs:
290293

291294
- name: Warn if global tool GitHub Packages mirror failed
292295
if: steps.tool-gpr-publish.outcome == 'failure'
293-
run: echo "Warning: nildiff GitHub Packages mirror failed after nuget.org publication; investigate the mirror channel separately." >> "$GITHUB_STEP_SUMMARY"
296+
run: |
297+
echo "Warning: nildiff GitHub Packages mirror failed after nuget.org publication; investigate the mirror channel separately." >> "$GITHUB_STEP_SUMMARY"

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
99

1010
### [Unreleased]
1111

12+
#### Fixed
13+
14+
- **Release workflow summary warning steps now use YAML-safe multiline `run` blocks** — `.github/workflows/release.yml` now writes the four GitHub Packages mirror warning messages through block-scalar `run: |` steps instead of single-line plain scalars containing `Warning: ...`. This fixes the workflow syntax error that GitHub reported around line 263 and keeps the post-nuget.org mirror warnings intact. Affected: `.github/workflows/release.yml`. Tests: YAML parse validation via `ruby -e 'require "yaml"; YAML.load_file(".github/workflows/release.yml")'` (manual verification).
15+
1216
### [1.17.1] - 2026-04-18
1317

1418
#### Fixed
@@ -1446,6 +1450,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
14461450

14471451
### [Unreleased]
14481452

1453+
#### 修正
1454+
1455+
- **release workflow の summary warning step を YAML 安全な複数行 `run` に修正** — `.github/workflows/release.yml` の GitHub Packages mirror warning 4 箇所を、`Warning: ...` を含む single-line の plain scalar ではなく block scalar の `run: |` で書くようにしました。これにより、GitHub が 263 行付近で報告していた workflow 構文エラーを解消しつつ、nuget.org 公開後の mirror warning 自体はそのまま残します。対象: `.github/workflows/release.yml`。テスト: `ruby -e 'require "yaml"; YAML.load_file(".github/workflows/release.yml")'` による YAML parse 確認(手動検証)。
1456+
14491457
### [1.17.1] - 2026-04-18
14501458

14511459
#### 修正

0 commit comments

Comments
 (0)