Update build.yml
This commit is contained in:
parent
7c3bc1206c
commit
a519e09794
1 changed files with 18 additions and 26 deletions
44
.github/workflows/build.yml
vendored
44
.github/workflows/build.yml
vendored
|
|
@ -62,27 +62,20 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: CHANGELOG.md
|
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
|
- name: Create Discord message
|
||||||
id: message
|
id: message
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
header="## **${{ steps.info.outputs.project_name }}** был обновлен до ${{ steps.info.outputs.project_version }}! :tada:"
|
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](<https://www.curseforge.com/minecraft/modpacks/terrafirmagreg/files/5009295>) • "
|
link+="[CurseForge](<https://www.curseforge.com/minecraft/modpacks/terrafirmagreg/files/5009295>) • "
|
||||||
link+="[GitHub](<https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/releases/tag/0.4.0>) • "
|
link+="[GitHub](<https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/releases/tag/0.4.0>) • "
|
||||||
link+="[Issues](<https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/issues>)"
|
link+="[Issues](<https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/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
|
- name: Send Discord message
|
||||||
uses: hugoalh/send-discord-webhook-ghaction@v6.0.1
|
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
|
# path: ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-server.zip
|
||||||
# retention-days: 5
|
# retention-days: 5
|
||||||
|
|
||||||
#, build-cf-modpack, build-mmc-modpack, build-serverpack
|
|
||||||
|
|
||||||
release:
|
# release:
|
||||||
name: Release
|
# name: Release
|
||||||
needs: [modpack-info]
|
# needs: [modpack-info, build-cf-modpack, build-mmc-modpack, build-serverpack]
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: ./.github/workflows/release.yml
|
# uses: ./.github/workflows/release.yml
|
||||||
with:
|
# with:
|
||||||
project_name: ${{ needs.modpack-info.outputs.project_name }}
|
# project_name: ${{ needs.modpack-info.outputs.project_name }}
|
||||||
project_version: ${{ needs.modpack-info.outputs.project_version }}
|
# project_version: ${{ needs.modpack-info.outputs.project_version }}
|
||||||
mcversion: ${{ needs.modpack-info.outputs.mcversion }}
|
# mcversion: ${{ needs.modpack-info.outputs.mcversion }}
|
||||||
tag: ${{ needs.modpack-info.outputs.tag }}
|
# tag: ${{ needs.modpack-info.outputs.tag }}
|
||||||
news: ${{ needs.modpack-info.outputs.news }}
|
# news: ${{ needs.modpack-info.outputs.news }}
|
||||||
changelog: ${{ needs.modpack-info.outputs.changelog }}
|
# changelog: ${{ needs.modpack-info.outputs.changelog }}
|
||||||
secrets: inherit
|
# secrets: inherit
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue