~emersion/dotfiles

5469f5f7a4d4feb963cbe13714be298baa8d94f1 — Simon Ser 6 months ago 809af59
bin/submit-build: use jq instead of httppie
1 files changed, 3 insertions(+), 4 deletions(-)

M bin/submit-build
M bin/submit-build => bin/submit-build +3 -4
@@ 9,11 9,10 @@ else
    manifest=.build.yml
fi

build_id=$(http \
build_id=$(curl \
    -H "Authorization: token $oauth_token" \
    --data-urlencode "manifest@$manifest" \
    "${BUILDSRHT:-https://builds.sr.ht}/api/jobs" \
    manifest=@$manifest \
    tags:='["'$(basename $(pwd))'"]' \
    Authorization:"token $oauth_token" \
    | jq -r .id)
echo "Submitted #$build_id"
xdg-open ${BUILDSRHT:-https://builds.sr.ht}/'~sircmpwn'/job/$build_id