pull out json data
All checks were successful
build

This commit is contained in:
Joe Kaufeld 2023-03-25 21:22:03 -04:00
parent 4f9653558a
commit fd9830559b

View File

@ -29,16 +29,20 @@ jobs:
make build
- name: Create release!
run: |
JSON_DATA=$(
printf '%s' \
'{'\
'"tag_name":"${{ env.CURRENT_TIME_VERSION }}",'\
'"name":"${{ env.CURRENT_TIME_VERSION }}",'\
'"body":"RELEASE THE KRAKEN"'\
'}' \
)
echo """release_id=$(\
curl -X POST \
-s https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases \
-H "Authorization: token ${{ secrets.PAT }}" \
-H 'Content-Type: application/json' \
-d '{\
"tag_name":"${{ env.CURRENT_TIME_VERSION }}",\
"name":"${{ env.CURRENT_TIME_VERSION }}",\
"body":"RELEASE THE KRAKEN"\
}' \
-d $JSON_DATA \
| python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\
)""" >> $GITHUB_ENV
- name: Upload assets!