E.F.S.F. E.F.S.F.

销声匿迹 沉默是金

目录
Gitlab简易Release脚本
/  

Gitlab简易Release脚本

#!/usr/bin/env bash  
  
echo -n "0.请输入你的Github Access Token:"  
read token  
echo -n "1.请输入项目的id:"  
read id  
echo -n "2.请输入项目release的名称:"  
read name  
echo -n "3.请输入即将创建release版本的tag:"  
read tag_name  
echo -n "4.请输入release的描述:"  
read description  
  
curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: $token" \  
 --data '{ "name": "'$name'", "tag_name": "'$tag_name'", "ref":"'$tag_name'" ,"description": "'$description'" }' \  
 --request POST http://gitlab_url/api/v4/projects/$id/releases

标题:Gitlab简易Release脚本
作者:devcui
地址:https://blog.eiyouhe.com/articles/2020/08/30/1598767655948.html