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 地址
|
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/<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 "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"tag_name": "'"$TAG_NAME"'",
|
"tag_name": "'"$TAG_NAME"'",
|
||||||
"target_commitish": "main",
|
"target_commitish": "main",
|
||||||
"name": "'"$TAG_NAME"'",
|
"name": "'"$TAG_NAME"'",
|
||||||
"body": "'"${{ steps.changelog.outputs.changelog }}"'",
|
"body": "'"waiting..."'",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"prerelease": false
|
"prerelease": false
|
||||||
}'
|
}'
|
||||||
Reference in New Issue
Block a user