From 11af0e86f90bb10568d70803c09e9ff1091d8b9c Mon Sep 17 00:00:00 2001 From: leafus Date: Sun, 29 Sep 2024 03:42:53 +0200 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2ecf57d..966f6dd 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -33,11 +33,21 @@ jobs: git tag $new_version git push origin $new_version + - name: Get latest commit ID + id: get_commit + run: | + commit_id=$(git rev-parse HEAD) + echo "commit_id=$commit_id" >> $GITHUB_ENV + - name: Create Release uses: actions/create-release@v1 with: tag_name: ${{ env.new_version }} release_name: Release ${{ env.new_version }} + release_description: | + Automatic release by Gitea CI + Release version ${{ env.new_version }}. + Commit ID: ${{ env.commit_id }} draft: false prerelease: false env: