Skip to content

Commit 990a3bb

Browse files
committed
fixed api call json
1 parent 564f963 commit 990a3bb

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/release-post-merge.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,13 @@ jobs:
5353
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
5454
-H "Accept: application/vnd.github.v3+json" \
5555
https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/releases \
56-
-d '{
57-
"tag_name": "'"$TAG_NAME"'",
58-
"target_commitish": "main",
59-
"name": "'"$TAG_NAME"'",
60-
"body": "'"$RELEASE_NOTES"'",
61-
"draft": false,
62-
"prerelease": false
63-
}'
64-
56+
-d "$(jq -n \
57+
--arg tag_name "$TAG_NAME" \
58+
--arg target_commitish "main" \
59+
--arg name "$TAG_NAME" \
60+
--arg body "$RELEASE_NOTES" \
61+
'{tag_name: $tag_name, target_commitish: $target_commitish, name: $name, body: $body, draft: false, prerelease: false}')"
62+
6563
- name: Merge Main into Develop
6664
run: |
6765
git config user.name "$GITHUB_ACTOR"

0 commit comments

Comments
 (0)