Update build.yml
This commit is contained in:
parent
0e0e18bfac
commit
6e299967f0
1 changed files with 13 additions and 1 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
|
@ -61,13 +61,25 @@ jobs:
|
|||
with:
|
||||
path: CHANGELOG.md
|
||||
|
||||
- name: Extract changes
|
||||
- name: Process changelog
|
||||
id: changelog
|
||||
shell: bash
|
||||
run: |
|
||||
echo "This is a markdown file" > CHANGELOG-${{ steps.info.outputs.project_version }}.md
|
||||
|
||||
changelog_full="${{ steps.changelog_full.outputs.description }}"
|
||||
news=$(echo "$changelog_full" | sed -n '/### Изменения/,/###/p' | sed '$d')
|
||||
echo news=$news >> CHANGELOG-${{ steps.info.outputs.project_version }}.md
|
||||
|
||||
echo news=$news >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload changelog
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: changelog
|
||||
path: CHANGELOG-${{ steps.info.outputs.project_version }}.md
|
||||
|
||||
|
||||
- name: Create Discord message
|
||||
id: message
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue