Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b3d99bfe93 | |||
| 3db6cfcb17 | |||
| 589e4f8a06 |
@@ -21,14 +21,15 @@ jobs:
|
||||
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
||||
run: |
|
||||
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
||||
curl -X POST "$GITEA_API_URL/repos/<owner>/<repo>/releases" \
|
||||
echo 'AAA ${{ 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 "Content-Type: application/json" \
|
||||
-d '{
|
||||
"tag_name": "'"$TAG_NAME"'",
|
||||
"target_commitish": "main",
|
||||
"name": "'"$TAG_NAME"'",
|
||||
"body": "'"${{ steps.changelog.outputs.changelog }}"'",
|
||||
"body": "'"waiting..."'",
|
||||
"draft": false,
|
||||
"prerelease": false
|
||||
}'
|
||||
Reference in New Issue
Block a user