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