Skip to content

Commit ed812ae

Browse files
committed
fix(ci): add target_commitish for Gitee release API
1 parent 66d8f4c commit ed812ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ jobs:
201201
-d "{
202202
\"access_token\": \"${GITEE_TOKEN}\",
203203
\"tag_name\": \"${TAG}\",
204+
\"target_commitish\": \"main\",
204205
\"name\": \"Echo ${TAG}\",
205206
\"body\": \"Automated release for ${TAG}. Download the installer for your platform below.\",
206207
\"prerelease\": false
@@ -262,6 +263,7 @@ jobs:
262263
-d "{
263264
\"access_token\": \"${GITEE_TOKEN}\",
264265
\"tag_name\": \"latest\",
266+
\"target_commitish\": \"main\",
265267
\"name\": \"Latest (${TAG})\",
266268
\"body\": \"This release always points to the latest version. Current: ${TAG}\",
267269
\"prerelease\": false

0 commit comments

Comments
 (0)