2023-11-11 21:36:11 +03:00
|
|
|
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
export VERSION=`date +'%Y-%m-%d %R:%S'`
|
|
|
|
curl -X 'POST' \
|
2023-11-11 21:41:00 +03:00
|
|
|
'https://gitea.neur0tx.site/api/v1/repos/xray-addons/geoip-geosite-with-ru-blocklist/tags?token='"$GITEA_API_KEY"'' \
|
2023-11-11 21:36:11 +03:00
|
|
|
-H 'accept: application/json' \
|
|
|
|
-H 'Content-Type: application/json' \
|
|
|
|
-d '{
|
|
|
|
"message": "'"$VERSION"': daily release from ci",
|
|
|
|
"tag_name": "'"$VERSION"'",
|
|
|
|
"target": "master"
|
|
|
|
}'
|