Skip to content

Commit 21aadda

Browse files
committed
ci: Build test
1 parent 5e0def2 commit 21aadda

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/packages.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,8 @@ jobs:
635635
# Add a final job to organize release assets in the description
636636
organize-release-assets:
637637
name: Organize Release Assets
638-
needs: [create-debian-package, create-rpm-package, create-aur-package, create-macos-package]
638+
# Update to include all package creation jobs including Snap and Nix
639+
needs: [create-debian-package, create-rpm-package, create-aur-package, create-macos-package, create-snap-package, create-nix-package]
639640
# Skip the failing APK package job
640641
runs-on: ubuntu-latest
641642
if: always() # Run even if some of the previous jobs failed
@@ -813,13 +814,15 @@ jobs:
813814
run: |
814815
RELEASE_ID="${{ steps.get_release_id.outputs.RELEASE_ID }}"
815816
816-
# Use GitHub CLI to update the release body
817-
gh api \
818-
--method PATCH \
817+
# Use curl instead of GitHub CLI to avoid YAML parsing issues with markdown content
818+
ESCAPED_BODY=$(cat combined_body.md | jq -sR .)
819+
820+
curl -X PATCH \
821+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
819822
-H "Accept: application/vnd.github+json" \
820823
-H "X-GitHub-Api-Version: 2022-11-28" \
821-
/repos/${{ github.repository }}/releases/$RELEASE_ID \
822-
-f body="$(cat combined_body.md)"
824+
"https://api.github.com/repos/${{ github.repository }}/releases/$RELEASE_ID" \
825+
-d "{\"body\": $ESCAPED_BODY}"
823826
env:
824827
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
825828

0 commit comments

Comments
 (0)