Removing extra line and fixing bug when copying unix files
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user