Skip to content

Commit 7982bc3

Browse files
committed
Fix YAML syntax error in npm-release-reusable workflow
- Replace inline multi-line string with heredoc approach - Use release-notes.md file for gh release edit command - Fixes parsing error on line 196
1 parent 3b324d4 commit 7982bc3

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/npm-release-reusable.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,19 @@ jobs:
191191
if: '!inputs.dry-run && steps.check_release.outputs.exists == ''true'' && inputs.docker-enabled'
192192
run: |
193193
echo "Release already exists, updating with Docker image information"
194-
BODY="## Release v${{ steps.get_version.outputs.version }}
195-
196-
### Changes
197-
- See commit history for changes
198-
199-
### Docker Image
200-
Docker image available at: \`${{ secrets.ACR_URL }}/${{ inputs.docker-image-name }}:${{ steps.get_version.outputs.version }}\`"
194+
cat > release-notes.md << EOF
195+
## Release v${{ steps.get_version.outputs.version }}
196+
197+
### Changes
198+
- See commit history for changes
199+
200+
### Docker Image
201+
Docker image available at: \`${{ secrets.ACR_URL }}/${{ inputs.docker-image-name }}:${{ steps.get_version.outputs.version }}\`
202+
EOF
201203
202204
gh release edit "v${{ steps.get_version.outputs.version }}" \
203205
--repo ${{ inputs.repository }} \
204-
--notes "$BODY"
206+
--notes-file release-notes.md
205207
env:
206208
GH_TOKEN: ${{ secrets.GH_PAT }}
207209

0 commit comments

Comments
 (0)