Commit 4319e82f authored by flynn's avatar flynn

rename file

parent 53c85790
#!/usr/bin/env bash
# Never worked
PRIVATE_TOKEN="-gcyNiyf1iAHjDKPTwjy"
URL="https://git.zeus.gent/ZeusWPI/cat/releases/"
if [[ $1 = "list" ]]
then
curl \
-H "Accept: application/json" -v \
--header "PRIVATE-TOKEN: ${PRIVATE_TOKEN}" "${URL}"
elif [[ $1 = "create" ]]
then
curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: ${PRIVATE_TOKEN}" \
--data '{ "name": "New release", "tag_name": "v0.1", "description": "Super nice release", "assets": { "links": [{ "name": "hoge", "url": "https://duck.com" }] } }' \
--request POST "${URL}"
fi
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment