✨ 修正 Gitea 发布工作流中的仓库引用,确保使用正确的路径进行 API 请求
This commit is contained in:
@ -21,7 +21,8 @@ jobs:
|
|||||||
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
||||||
run: |
|
run: |
|
||||||
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
||||||
curl -X POST "$GITEA_API_URL/repos/${{ github.repository }}/releases" \
|
echo ${{ github.repository }} ${{ github.repository_owner }} ${{ github.event.repository.name }}
|
||||||
|
curl -X POST "$GITEA_API_URL/repos/bot/yukilog/releases" \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
|
Reference in New Issue
Block a user