From d98f3e4be2b32e8404bbbb1b190458564eb47afe Mon Sep 17 00:00:00 2001 From: Joe Kaufeld Date: Sat, 25 Mar 2023 00:21:28 -0400 Subject: [PATCH] adjust curl command --- .github/workflows/build_and_release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 5fb80df..ac24577 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -30,9 +30,11 @@ jobs: - name: Create release! run: | echo """release_id=$(\ - curl -s https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases \ + curl -X POST \ + -s https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases \ -H "Authorization: token ${{ secrets.PAT }}" \ - -d tag_name=${{ env.CURRENT_TIME_VERSION }} \ + -H 'Content-Type: application/json' \ + -d '{"tag_name":"${{ env.CURRENT_TIME_VERSION }}","name":"${{ env.CURRENT_TIME_VERSION }}","body":"it\'s releasin\' time"}' | python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\ )""" >> $GITHUB_ENV - name: Upload assets!