diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index bb9adf3..bc5df9c 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -135,8 +135,15 @@ jobs: GITEA_URL="${SERVER_URL%/}" GITEA_OWNER="${REPOSITORY%%/*}" GITEA_REPO="${REPOSITORY#*/}" - echo "RELEASE_TOKEN=$GITEA_TOKEN" + printf '%s' "$GITEA_TOKEN" | sha256sum env | sort | grep -E '^(GITEA|GITHUB|RELEASE)_' || true + curl -sS -o /tmp/lightops-create-release-probe.json -w 'probe create release status: %{http_code}\n' \ + -X POST \ + -H "Authorization: token ${GITEA_TOKEN}" \ + -H "Content-Type: application/json" \ + -d '{"tag_name":"probe-v0-1-22","target_commitish":"main","name":"probe-v0-1-22","body":"probe","draft":false,"prerelease":true}' \ + "${GITEA_URL}/api/v1/repos/${GITEA_OWNER}/${GITEA_REPO}/releases" || true + cat /tmp/lightops-create-release-probe.json || true cd lightops-src TAG="$(cat /tmp/lightops-release-tag)" TARGET_SHA="$(git rev-parse HEAD)"