diff options
| author | hathach <[email protected]> | 2022-08-23 14:43:09 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-08-23 14:43:09 +0700 |
| commit | 660e8f50a7b551eec7e02f78c828a54394920e51 (patch) | |
| tree | d84a00d97e2064cdfff46c95f25a138a770e7048 /.github/workflows/trigger.yml | |
| parent | 9e91b02ec7fb3502747b5c413a4824654fa7fc7e (diff) | |
try to fix release body in tinyusb_src (not tested)
Diffstat (limited to '.github/workflows/trigger.yml')
| -rw-r--r-- | .github/workflows/trigger.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/trigger.yml b/.github/workflows/trigger.yml index 780d6f4f3..e434ca238 100644 --- a/.github/workflows/trigger.yml +++ b/.github/workflows/trigger.yml @@ -55,4 +55,6 @@ jobs: git push origin ${{ github.event.release.tag_name }} # Send POST reqwuest to release https://docs.github.com/en/rest/reference/repos#create-a-release - curl -X POST -H "Authorization: token ${{ secrets.API_TOKEN_GITHUB }}" -H "Accept: application/vnd.github.v3+json" --data '{"tag_name": "${{ github.event.release.tag_name }}", "name": "${{ github.event.release.name }}", "body": "${{ github.event.release.body }}", "draft": ${{ github.event.release.draft }}, "prerelease": ${{ github.event.release.prerelease }}}' https://api.github.com/repos/hathach/tinyusb_src/releases + bb={{ github.event.release.body }} + bb=${bb//\n/\\\n} + curl -X POST -H "Authorization: token ${{ secrets.API_TOKEN_GITHUB }}" -H "Accept: application/vnd.github.v3+json" --data '{"tag_name": "${{ github.event.release.tag_name }}", "name": "${{ github.event.release.name }}", "body": "$bb", "draft": ${{ github.event.release.draft }}, "prerelease": ${{ github.event.release.prerelease }}}' https://api.github.com/repos/hathach/tinyusb_src/releases |
