From e0181f02a4e5e12b4db3f6fe720702f7c88a5c3e Mon Sep 17 00:00:00 2001 From: Wires77 Date: Fri, 28 Jan 2022 16:22:17 -0600 Subject: [PATCH] Removing extra line and fixing bug when copying unix files --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 596ac3f5..0f962050 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,15 +24,16 @@ jobs: sed -i '1h;1d;$!H;$!d;G' temp_change.md; sed -i -re 's/\*\*Full Changelog\*\*: (.*)/\[Full Changelog\]\(\1\)\n/' temp_change.md; sed -i '/## New Contributors/,$d' temp_change.md; - cp temp_change.md changelog_new.txt; + cp temp_change.md changelog_temp.txt; cat CHANGELOG.md | sed '1d' >> temp_change.md; printf "# Changelog\n\n## [v${{ github.event.inputs.releaseVersion }}](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v${{ github.event.inputs.releaseVersion }}) ($(date +'%Y/%m/%d'))\n\n" | cat - temp_change.md > CHANGELOG.md; - sed -i 's/Quotae/Quote_a/' changelog_new.txt; - sed -i 's/learn2draw/Lexy/' changelog_new.txt; - sed -i 's/Voronoff/Tom Clancy Is Dead/' changelog_new.txt; - echo "VERSION[${{ github.event.inputs.releaseVersion }}][`date +'%Y/%m/%d'`]" | cat - changelog_new.txt | sed '2,3d' | sed -e '/^##.*/,+1 d' | sed -r 's/by @(.*) in http.*/\(\1\)/' | cat - changelog.txt > changelog_new.txt; + sed -i 's/Quotae/Quote_a/' changelog_temp.txt; + sed -i 's/learn2draw/Lexy/' changelog_temp.txt; + sed -i 's/Voronoff/Tom Clancy Is Dead/' changelog_temp.txt; + echo "VERSION[${{ github.event.inputs.releaseVersion }}][`date +'%Y/%m/%d'`]" | cat - changelog_temp.txt | sed '2,4d' | sed -e '/^##.*/,+1 d' | sed -r 's/by @(.*) in http.*/\(\1\)/' | cat - changelog.txt > changelog_new.txt; rm temp_change.md; + rm changelog_temp.txt; mv changelog_new.txt changelog.txt - name: Create Pull Request uses: peter-evans/create-pull-request@v3.8.0