From a519e09794044c00a60077a9191e6ef65a210ad0 Mon Sep 17 00:00:00 2001 From: Xikaro <0regon.end@gmail.com> Date: Fri, 5 Jan 2024 13:51:04 +0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 44 +++++++++++++++---------------------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b16f54228..9e0abd68d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,28 +61,21 @@ jobs: uses: coditory/changelog-parser@v1.0.2 with: path: CHANGELOG.md - - - name: Process changelog - id: changelog - shell: bash - run: | - set +e - news=$(printf "%s" "${{ steps.changelog_full.outputs.description }}" | sed -n '/### Изменения/,/###/p' | sed '$d') - printf "%s" "news=$news" - echo -e "news=$news" >> $GITHUB_OUTPUT - - name: Create Discord message id: message shell: bash run: | header="## **${{ steps.info.outputs.project_name }}** был обновлен до ${{ steps.info.outputs.project_version }}! :tada:" - echo "header=$header" >> $GITHUB_OUTPUT + echo -e "header=$header" >> $GITHUB_OUTPUT link+="[CurseForge]() • " link+="[GitHub]() • " link+="[Issues]()" - echo "link=$link" >> $GITHUB_OUTPUT + echo -e "link=$link" >> $GITHUB_OUTPUT + + news=$(echo -e "${{ steps.changelog_full.outputs.description }}" | sed -n '/### Изменения/,/###/p' | sed '$d') + echo -e "news=$news" >> $GITHUB_OUTPUT - name: Send Discord message uses: hugoalh/send-discord-webhook-ghaction@v6.0.1 @@ -200,19 +193,18 @@ jobs: # path: ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-server.zip # retention-days: 5 - #, build-cf-modpack, build-mmc-modpack, build-serverpack - release: - name: Release - needs: [modpack-info] - if: startsWith(github.ref, 'refs/tags/') - uses: ./.github/workflows/release.yml - with: - project_name: ${{ needs.modpack-info.outputs.project_name }} - project_version: ${{ needs.modpack-info.outputs.project_version }} - mcversion: ${{ needs.modpack-info.outputs.mcversion }} - tag: ${{ needs.modpack-info.outputs.tag }} - news: ${{ needs.modpack-info.outputs.news }} - changelog: ${{ needs.modpack-info.outputs.changelog }} - secrets: inherit + # release: + # name: Release + # needs: [modpack-info, build-cf-modpack, build-mmc-modpack, build-serverpack] + # if: startsWith(github.ref, 'refs/tags/') + # uses: ./.github/workflows/release.yml + # with: + # project_name: ${{ needs.modpack-info.outputs.project_name }} + # project_version: ${{ needs.modpack-info.outputs.project_version }} + # mcversion: ${{ needs.modpack-info.outputs.mcversion }} + # tag: ${{ needs.modpack-info.outputs.tag }} + # news: ${{ needs.modpack-info.outputs.news }} + # changelog: ${{ needs.modpack-info.outputs.changelog }} + # secrets: inherit