From 8609d1217969403dc0773a2fcb2c4aaa336c8d4a Mon Sep 17 00:00:00 2001 From: Dexoron Date: Wed, 12 Aug 2026 20:49:36 +0800 Subject: [PATCH] fix release sync --- .github/workflows/release-mirror.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-mirror.yml b/.github/workflows/release-mirror.yml index 322b513..172bc9f 100644 --- a/.github/workflows/release-mirror.yml +++ b/.github/workflows/release-mirror.yml @@ -270,7 +270,7 @@ jobs: run: | set -euo pipefail test -n "$GITLAB_PAT" || { echo 'GITLAB_PAT is not configured' >&2; exit 0; } - + project_id="${GITLAB_PROJECT//\//%2F}" api="https://gitlab.com/api/v4/projects/${project_id}" title=$(jq -r '.name // .tag_name' release.json) @@ -284,7 +284,7 @@ jobs: echo "GitLab release ${TAG} already exists; skipping" exit 0 fi - + echo "Creating release on GitLab..." curl -fsSL -X POST -H "PRIVATE-TOKEN: $GITLAB_PAT" \ - -H 'Content-Type: application/json' --data "$payload" "${api}/releases" || true \ No newline at end of file + -H 'Content-Type: application/json' --data "$payload" "${api}/releases" || true