mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 23:45:39 +00:00
TEST: tesing main release on Gitea [skip ci]
This commit is contained in:
parent
5169f4918a
commit
af90d94c79
4
.github/workflows/main-gitea.yml
vendored
4
.github/workflows/main-gitea.yml
vendored
|
@ -139,13 +139,13 @@ jobs:
|
||||||
TAG="${{ env.REL_VER }}"
|
TAG="${{ env.REL_VER }}"
|
||||||
RELEASE_BODY="$(cat body.md)"
|
RELEASE_BODY="$(cat body.md)"
|
||||||
|
|
||||||
echo -e "[DEBUG] Release Body:\n$RELEASE_BODY"
|
escaped_body=$(echo "$RELEASE_BODY" | sed 's/[][\\.*^$]/\\&/g')
|
||||||
|
|
||||||
# Create a release using curl and capture the release ID
|
# Create a release using curl and capture the release ID
|
||||||
release_response=$(curl -X POST \
|
release_response=$(curl -X POST \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$RELEASE_NAME\",\"body\":"'"$RELEASE_BODY"'"}" \
|
-d "{\"tag_name\":\"$TAG\",\"name\":\"$RELEASE_NAME\",\"body\":\"$escaped_body\"}" \
|
||||||
"http://$GITEA_HOST/api/v1/repos/$ORGANIZATION/$REPO/releases")
|
"http://$GITEA_HOST/api/v1/repos/$ORGANIZATION/$REPO/releases")
|
||||||
|
|
||||||
echo -e "[DEBUG] Release response:\n$release_response"
|
echo -e "[DEBUG] Release response:\n$release_response"
|
||||||
|
|
Loading…
Reference in a new issue