adjust curl command
Some checks failed
build

This commit is contained in:
Joe Kaufeld 2023-03-25 00:21:28 -04:00
parent 12f020b0c8
commit d98f3e4be2

View File

@ -30,9 +30,11 @@ jobs:
- name: Create release! - name: Create release!
run: | run: |
echo """release_id=$(\ 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 }}" \ -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'])"\ | python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\
)""" >> $GITHUB_ENV )""" >> $GITHUB_ENV
- name: Upload assets! - name: Upload assets!