Skip to content

Commit

Permalink
Update Build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
juraj-hrivnak committed Oct 31, 2023
1 parent a3e17c4 commit c384ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ jobs:
rm ./pax/modpack/manifest_prev.json
# News
news=$(echo "$changelog" | grep -P -o '\@news\@\{\K[\s]\n*([\s\S]*)\n(?=\})')
news=$(echo "$changelog" | pcregrep -o1 -Ei '\@news\@\{[\s]\n*([\s\S]*)\n\}\n')
echo "news=$news" >> $GITHUB_OUTPUT
echo -e "${GREEN}$news"
perl -i -pe 's/\@news\@\{[\s]\n*([\s\S]*)\n\}\n/\1/g' $changelog
perl -i -pe "s/\@news\@\{[\s]\n*([\s\S]*)\n\}\n/\1/g" $changelog
# Rename changelog
mv $changelog CHANGELOG-${{ steps.info.outputs.projectsuffix }}.md
Expand Down

0 comments on commit c384ad0

Please sign in to comment.