✨ 更新生成变更日志步骤,移除 TAG_NAME 环境变量定义,直接使用 github.ref_name 作为标签名称
This commit is contained in:
parent
d4e0541ad6
commit
2ff7b6d295
@ -19,24 +19,21 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
env:
|
|
||||||
TAG_NAME: $(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
|
||||||
run: |
|
run: |
|
||||||
wget -O /usr/bin/changelog https://gitea.com/gitea/changelog/releases/download/v1.0.0/changelog-1.0.0-linux-amd64
|
wget -O /usr/bin/changelog https://gitea.com/gitea/changelog/releases/download/v1.0.0/changelog-1.0.0-linux-amd64
|
||||||
chmod +x /usr/bin/changelog
|
chmod +x /usr/bin/changelog
|
||||||
changelog -m=$TAG_NAME -c=./changelog.yaml
|
changelog -m=${{ github.ref_name }}" -c=./changelog.yaml
|
||||||
|
|
||||||
# 创建 Gitea Release
|
# 创建 Gitea Release
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.LITEYUKI_GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.LITEYUKI_GITEA_TOKEN }}
|
||||||
TAG_NAME: $(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
|
||||||
run: |
|
run: |
|
||||||
curl -X POST "$GITEA_API_URL/repos/${{ github.repository }}/releases" \
|
curl -X POST "$GITEA_API_URL/repos/${{ github.repository }}/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": "'"${{ github.ref_name }}"'",
|
||||||
"target_commitish": "main",
|
"target_commitish": "main",
|
||||||
"name": "'"$TAG_NAME"'",
|
"name": "'"$TAG_NAME"'",
|
||||||
"body": "'"waiting..."'",
|
"body": "'"waiting..."'",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user