Skip to content

Commit

Permalink
Merge pull request #1296 from ONLYOFFICE/feature/fix-init-changelog
Browse files Browse the repository at this point in the history
Fix init-changelogs action to prevent color damage
  • Loading branch information
K0R0L authored Jul 17, 2024
2 parents bea37d1 + bc17ef8 commit 808eca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/init-changelogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
cp -fRTv $CHANGES_WIN/0.0.0 $CHANGES_WIN/$VERSION
cp -fRTv $CHANGES_MAC/0.0.0 $CHANGES_MAC/$VERSION
cp -fRTv $CHANGES_LINUX/template $CHANGES_LINUX/$VERSION
# for changelog files for win, mac and linux replace '0.0.0' with VERSION,
# and replace '000' in the row included 'CHANGELOG' with VERSION without dots
find $CHANGES_WIN/$VERSION $CHANGES_MAC/$VERSION $CHANGES_LINUX/$VERSION -name "*.html" -print \
-exec sed -e 's/0.0.0/'${VERSION}'/g' -e 's/000/'${VERSION//./}'/g' -i {} \;
-exec sed -e 's/0.0.0/'${VERSION}'/g' -e '/CHANGELOG/s/000/'${VERSION//./}'/g' -i {} \;
- name: Commit changes
uses: EndBug/add-and-commit@v9
Expand Down

0 comments on commit 808eca0

Please sign in to comment.