rename file
This commit is contained in:
parent
53c85790cc
commit
4319e82fcf
1 changed files with 22 additions and 0 deletions
22
configure-gitlab-releases.sh
Executable file
22
configure-gitlab-releases.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/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
|
Loading…
Reference in a new issue