This commit is contained in:
parent
894da51993
commit
c040c73451
@ -90,13 +90,16 @@ jobs:
|
|||||||
PREVIOUS_TAG="HEAD~1" # 如果没有上次标签,使用上一次提交
|
PREVIOUS_TAG="HEAD~1" # 如果没有上次标签,使用上一次提交
|
||||||
fi
|
fi
|
||||||
echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
|
echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 创建Gitea发布
|
- name: 获取提交记录
|
||||||
id: get-commit-log
|
id: get-commit-log
|
||||||
uses: https://gitea.com/actions/gitea-release-action@main
|
|
||||||
run: |
|
run: |
|
||||||
COMMIT_LOG=$(git log ${{ steps.get-previous-tag.outputs.previous_tag }}..HEAD --pretty=format:"- %s (%h)" | tr '\n' '\r')
|
COMMIT_LOG=$(git log ${{ steps.get-previous-tag.outputs.previous_tag }}..HEAD --pretty=format:"- %s (%h)" | tr '\n' '\r')
|
||||||
|
echo "commit_log=$COMMIT_LOG"
|
||||||
echo "commit_log=$COMMIT_LOG" >> $GITHUB_OUTPUT
|
echo "commit_log=$COMMIT_LOG" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: 创建Gitea发布
|
||||||
|
uses: https://gitea.com/actions/gitea-release-action@main
|
||||||
with:
|
with:
|
||||||
gitea_token: ${{ secrets.AUTOGENERATE }}
|
gitea_token: ${{ secrets.AUTOGENERATE }}
|
||||||
gitea_instance_url: ${{ github.server_url }}
|
gitea_instance_url: ${{ github.server_url }}
|
||||||
|
Loading…
Reference in New Issue
Block a user