This commit is contained in:
@@ -56,13 +56,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python ./main.py build -f
|
python ./main.py build -f
|
||||||
|
|
||||||
- name: Чтение report.log
|
- name: Чтение title из report.log
|
||||||
id: get_title
|
id: get_title
|
||||||
run: |
|
run: |
|
||||||
TITLE=$(head -n 1 modified/report.log)
|
TITLE=$(head -n 1 modified/report.log)
|
||||||
tail -n +2 modified/report.log > modified/report.log.tmp
|
|
||||||
echo "title=${TITLE}" >> $GITHUB_OUTPUT
|
echo "title=${TITLE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Чтение body из report.log
|
||||||
|
id: get_body
|
||||||
|
run: |
|
||||||
|
BODY=$(tail -n +2 modified/report.log)
|
||||||
|
echo "body<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
echo "$BODY" >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Установка go
|
- name: Установка go
|
||||||
if: steps.build.outputs.BUILD_EXIT == '0'
|
if: steps.build.outputs.BUILD_EXIT == '0'
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
@@ -74,7 +81,7 @@ jobs:
|
|||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
title: ${{ steps.get_title.outputs.title }}
|
title: ${{ steps.get_title.outputs.title }}
|
||||||
body_path: modified/report.log.tmp
|
body: ${{ steps.get_body.outputs.body }}
|
||||||
draft: true
|
draft: true
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
files: |-
|
files: |-
|
||||||
|
|||||||
Reference in New Issue
Block a user