fix(ci): use heredoc for release notes to handle special characters
🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -120,15 +120,19 @@ jobs:
|
|||||||
echo "Updating existing draft release..."
|
echo "Updating existing draft release..."
|
||||||
gh release edit next \
|
gh release edit next \
|
||||||
--title "Upcoming Changes 🍿" \
|
--title "Upcoming Changes 🍿" \
|
||||||
--notes "${{ steps.notes.outputs.notes }}" \
|
--notes-file - \
|
||||||
--draft
|
--draft <<'EOF'
|
||||||
|
${{ steps.notes.outputs.notes }}
|
||||||
|
EOF
|
||||||
else
|
else
|
||||||
echo "Creating new draft release..."
|
echo "Creating new draft release..."
|
||||||
gh release create next \
|
gh release create next \
|
||||||
--title "Upcoming Changes 🍿" \
|
--title "Upcoming Changes 🍿" \
|
||||||
--notes "${{ steps.notes.outputs.notes }}" \
|
--notes-file - \
|
||||||
--draft \
|
--draft \
|
||||||
--target ${{ github.sha }}
|
--target ${{ github.sha }} <<'EOF'
|
||||||
|
${{ steps.notes.outputs.notes }}
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user