From 0a6be5dcfef84cb93775381e9f56b92e6efe38e1 Mon Sep 17 00:00:00 2001 From: Everton Colling Date: Thu, 3 Jul 2025 23:35:42 +0200 Subject: [PATCH] fix: correct YAML syntax in release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix multi-line string handling in gh release create command - Use heredoc to create release notes file first - Then reference it with --notes-file flag 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/release.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3986d2..fbca50f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,10 +78,9 @@ jobs: # Move all binaries to current directory mv artifacts/*/* . - # Create release with all binaries - gh release create ${{ github.ref_name }} \ - --title "Release ${{ github.ref_name }}" \ - --notes "Release ${{ github.ref_name }} of poc-requests-go - A Go client library for Cognite Data Fusion (CDF) APIs + # Create release notes file + cat > release-notes.md << 'EOF' +Release ${{ github.ref_name }} of poc-requests-go - A Go client library for Cognite Data Fusion (CDF) APIs ## Features - **Time Series API** support: @@ -102,9 +101,9 @@ jobs: ## Installation ### Using go get -\`\`\`bash +```bash go get github.com/evertoncolling/poc-requests-go -\`\`\` +``` ### Using pre-built binaries Download the appropriate binary for your platform from the assets below. @@ -114,5 +113,11 @@ Download the appropriate binary for your platform from the assets below. - Valid CDF credentials (client ID, secret, tenant ID) ## Documentation -See the [README](https://github.com/evertoncolling/poc-requests-go/blob/main/README.md) for detailed usage examples and API documentation." \ +See the [README](https://github.com/evertoncolling/poc-requests-go/blob/main/README.md) for detailed usage examples and API documentation. +EOF + + # Create release with all binaries + gh release create ${{ github.ref_name }} \ + --title "Release ${{ github.ref_name }}" \ + --notes-file release-notes.md \ *.tar.gz *.zip \ No newline at end of file