feat(action): added release name
All checks were successful
build dev image / build-dev (push) Successful in 5m7s

This commit is contained in:
sujiba 2024-07-09 09:28:43 +00:00
parent 0e957816d5
commit b00a79add9

View file

@ -125,8 +125,8 @@ jobs:
# Generate release message # Generate release message
datetime=$(env TZ=Europe/Berlin date "+%A, %d.%m.%Y at %R") datetime=$(env TZ=Europe/Berlin date "+%A, %d.%m.%Y at %R")
body="Create automatically on $datetime by forgejo action \\n\\n $i commit(s) since relase $latest_release:\\n\\n$(echo $message_list | sed 's/"//g' | sed 's/README.md docker-build docker-compose.yaml example.config renovate.json/*/g')" body="Automatically created on $datetime by forgejo action \\n\\n $i commit(s) since relase $latest_release:\\n\\n$(echo $message_list | sed 's/"//g' | sed 's/README.md docker-build docker-compose.yaml example.config renovate.json/*/g')"
echo "$body" echo "$body"
# Create release # Create release
curl -d "{\"body\": \"$body\", \"tag_name\": \"$NEW_RELEASE\", \"target_commitish\": \"main\" }" https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/releases -H "Authorization: token $GH_TOKEN" -H "Content-Type: application/json" curl -d "{\"body\": \"$body\", \"name\": \"$NEW_RELEASE\", \"tag_name\": \"$NEW_RELEASE\", \"target_commitish\": \"main\" }" https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/releases -H "Authorization: token $GH_TOKEN" -H "Content-Type: application/json"